Packagecom.distriqt.extension.adverts.events
Classpublic class ConsentEvent
InheritanceConsentEvent Inheritance flash.events.Event

Describes events dispatched from the consent SDK including the consent form and status requests



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
ConsentEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
ConsentEvent
  
clone():Event
[override]
ConsentEvent
Public Constants
 ConstantDefined 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
Property Detail
errorproperty
public var error:String

If an error occurred this will contain a description of the error.

inEeaOrUnknownproperty 
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:

statusproperty 
public var status:String

The updated consent status, may have any of the values defined in the ConsentStatus class.

See also

ConsentStatus.UNKNOWN
ConsentStatus.NON_PERSONALIZED
ConsentStatus.PERSONALIZED
userPrefersAdFreeproperty 
public var userPrefersAdFree:Boolean = false

Constructor Detail
ConsentEvent()Constructor
public function ConsentEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)



Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
FORM_CLOSEDConstant
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_ERRORConstant 
public static const FORM_ERROR:String = consent:form:error

Dispatched when there was error loading or displaying the consent form

STATUS_ERRORConstant 
public static const STATUS_ERROR:String = consent:status:error

Dispatched when there was an error retrieving the consent status

STATUS_UPDATEDConstant 
public static const STATUS_UPDATED:String = consent:status:updated

Dispatched when the consent status has been updated