Package | com.distriqt.extension.adverts.events |
Class | public class ConsentEvent |
Inheritance | ConsentEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
error : String
If an error occurred this will contain a description of the error. | ConsentEvent | ||
inEeaOrUnknown : Boolean = false
If the user is located in the European Economic Area or the request location is unknown
If this is false, the user is not located in the European Economic Area
and consent is not required under the EU User Consent Policy. | ConsentEvent | ||
status : String
The updated consent status, may have any of the values
defined in the ConsentStatus class. | ConsentEvent | ||
userPrefersAdFree : Boolean = false | ConsentEvent |
Method | Defined By | ||
---|---|---|---|
ConsentEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) | ConsentEvent | ||
clone():Event [override] | ConsentEvent |
Constant | Defined By | ||
---|---|---|---|
FORM_CLOSED : String = consent:form:closed [static]
Dispatched when the consent form has been closed and the user has selected an option
| ConsentEvent | ||
FORM_ERROR : String = consent:form:error [static]
Dispatched when there was error loading or displaying the consent form
| ConsentEvent | ||
STATUS_ERROR : String = consent:status:error [static]
Dispatched when there was an error retrieving the consent status
| ConsentEvent | ||
STATUS_UPDATED : String = consent:status:updated [static]
Dispatched when the consent status has been updated
| ConsentEvent |
error | property |
public var error:String
If an error occurred this will contain a description of the error.
inEeaOrUnknown | property |
public var inEeaOrUnknown:Boolean = false
If the user is located in the European Economic Area or the request location is unknown
If this is false
, the user is not located in the European Economic Area
and consent is not required under the EU User Consent Policy.
You can make ad requests to the Google Mobile Ads SDK.
If this is true
:
status
is PERSONALIZED
or NON_PERSONALIZED
,
the user has already provided consent. You can now forward consent to the Google Mobile Ads SDK.
status
is UNKNOWN
, you should ask the user for consent.
status | property |
public var status:String
The updated consent status, may have any of the values
defined in the ConsentStatus
class.
See also
userPrefersAdFree | property |
public var userPrefersAdFree:Boolean = false
ConsentEvent | () | Constructor |
public function ConsentEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
type:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
FORM_CLOSED | Constant |
public static const FORM_CLOSED:String = consent:form:closed
Dispatched when the consent form has been closed and the user has selected an option
FORM_ERROR | Constant |
public static const FORM_ERROR:String = consent:form:error
Dispatched when there was error loading or displaying the consent form
STATUS_ERROR | Constant |
public static const STATUS_ERROR:String = consent:status:error
Dispatched when there was an error retrieving the consent status
STATUS_UPDATED | Constant |
public static const STATUS_UPDATED:String = consent:status:updated
Dispatched when the consent status has been updated