ConsentInformation.ConsentStatus

@Retention(value = SOURCE)
@IntDef(value = [ConsentStatus.UNKNOWN, ConsentStatus.NOT_REQUIRED, ConsentStatus.REQUIRED, ConsentStatus.OBTAINED])
public annotation ConsentInformation.ConsentStatus


ค่าสถานะความยินยอม

สรุป

ค่าคงที่

static final int

ไม่ต้องได้รับความยินยอมจากผู้ใช้

static final int

ขอความยินยอมจากผู้ใช้แล้ว

static final int

ต้องได้รับความยินยอมจากผู้ใช้แต่ยังไม่ได้รับ

static final int

ไม่ทราบสถานะความยินยอม

ค่าคงที่

NOT_REQUIRED

public static final int NOT_REQUIRED = 1

ไม่ต้องได้รับความยินยอมจากผู้ใช้

ได้รับ

public static final int OBTAINED = 3

ขอความยินยอมจากผู้ใช้แล้ว โฆษณาที่ปรับตามโปรไฟล์ของผู้ใช้กับไม่ได้ปรับตามโปรไฟล์ของผู้ใช้

ต้องระบุ

public static final int REQUIRED = 2

ต้องได้รับความยินยอมจากผู้ใช้แต่ยังไม่ได้รับ

ไม่ทราบ

public static final int UNKNOWN = 0

ไม่ทราบสถานะความยินยอม ต้องเรียกใช้ requestConsentInfoUpdate เพื่ออัปเดต ConsentStatus