Utility methods for collecting consent from users.
| @interface | ConsentInformation.ConsentStatus | Consent status values. | |
| @interface | ConsentInformation.ConsentType | Type of user consent. | |
| interface | ConsentInformation.OnConsentInfoUpdateFailureListener | Interface definition for a callback to be invoked when consent info failed to update. | |
| interface | ConsentInformation.OnConsentInfoUpdateSuccessListener | Interface definition for a callback to be invoked when consent info is successfully updated. | |
| abstract int |
getConsentStatus()
Gets the current consent status.
|
| abstract int |
getConsentType()
Gets the current consent type.
|
| abstract boolean | |
| abstract void |
requestConsentInfoUpdate(Activity
activity, ConsentRequestParameters
consentRequestParameters,
ConsentInformation.OnConsentInfoUpdateSuccessListener successListener,
ConsentInformation.OnConsentInfoUpdateFailureListener failureListener)
Requests a consent information update.
|
| abstract void |
reset()
Resets the
ConsentInformation
to initialized status.
|
Gets the current consent status.
This value is cached between app sessions and can be read before calling
requestConsentInfoUpdate(Activity, ConsentRequestParameters,
ConsentInformation.OnConsentInfoUpdateSuccessListener,
ConsentInformation.OnConsentInfoUpdateFailureListener).
Gets the current consent type.
This value is cached between app sessions and can be read before calling
requestConsentInfoUpdate(Activity, ConsentRequestParameters,
ConsentInformation.OnConsentInfoUpdateSuccessListener,
ConsentInformation.OnConsentInfoUpdateFailureListener).
Returns true if a ConsentForm is
available, false otherwise.
Requests a consent information update.
| activity | The activity used to collect screen cut-outs. |
|---|---|
| consentRequestParameters | The request params. |
| successListener | The consent request success listener. |
| failureListener | The consent request failure listener. |
Resets the ConsentInformation
to initialized status. This should only used for debugging.