Packagecom.milkmangames.nativeextensions
Classpublic class GVFacebookDispatcher
InheritanceGVFacebookDispatcher Inheritance GVDispatcher Inheritance flash.events.EventDispatcher

GVFacebookDispatcher



Public Methods
 MethodDefined By
  
Convenience method that adds an event listener for when an async request for the Facebook Ad ID is completed.
GVFacebookDispatcher
  
Convenience method that adds an event listener for when a Facebook dialog request is completed.
GVFacebookDispatcher
  
Convenience method that adds an event listener for when an async Facebook request is completed.
GVFacebookDispatcher
Events
 Event Summary Defined By
  Facebook Mobile App Ad ID ResponseGVFacebookDispatcher
  Dispatched when a Facebook Dialog is cancelledGVFacebookDispatcher
  Dispatched when a Facebook Dialog has failedGVFacebookDispatcher
  Dispatched When a Facebook Dialog has finishedGVFacebookDispatcher
  Dispatched when a Facebook Graph Request has failedGVFacebookDispatcher
  Dispatched when a Facebook Graph Request returns a responseGVFacebookDispatcher
Method Detail
addAdIdListener()method
public function addAdIdListener(listener:Function):GVFacebookDispatcher

Convenience method that adds an event listener for when an async request for the Facebook Ad ID is completed. This listener will be a weak reference and automatically removed after dispatch. For backwards compatibility, GoViral.goViral will also dispatch the related event. The listener parameter should take the form of function(e:GVFacebookEvent) {}. You may check the value of e.facebookMobileAdId which will be the value of Facebook Ad ID if the request completed successfully, or null if it did not.

Parameters

listener:Function — the event listener function, should take GVFacebookEvent as a parameter

Returns
GVFacebookDispatcher — instance of GVFacebookDispatcher

See also

addDialogListener()method 
public function addDialogListener(listener:Function):GVFacebookDispatcher

Convenience method that adds an event listener for when a Facebook dialog request is completed. This listener will be a weak reference and automatically removed after dispatch. For backwards compatibility, GoViral.goViral will also dispatch the related event. The listener parameter should take the form of function(e:GVFacebookEvent) {}. You may check the value of e.type which will be either GVFacebookEvent.FB_DIALOG_FINISHED if the dialog completed successfully, GVFacebookEvent.FB_DIALOG_CANCELED if the dialog was canceled, or GVFacebookEvent.FB_DIALOG_FAILED if the dialog was not displayed successfully.

Parameters

listener:Function — the event listener function, should take GVFacebookEvent as a parameter

Returns
GVFacebookDispatcher — instance of GVFacebookDispatcher

See also

addRequestListener()method 
public function addRequestListener(listener:Function):GVFacebookDispatcher

Convenience method that adds an event listener for when an async Facebook request is completed. This listener will be a weak reference and automatically removed after dispatch. For backwards compatibility, GoViral.goViral will also dispatch the related event. The listener parameter should take the form of function(e:GVFacebookEvent) {}. You may check the value of e.type which will be either GVFacebookEvent.FB_REQUEST_RESPONSE if the call completed successfully, or GVFacebookEvent.FB_REQUEST_FAILED if the request has failed.

Parameters

listener:Function — the event listener function, should take GVFacebookEvent as a parameter

Returns
GVFacebookDispatcher — instance of GVFacebookDispatcher

See also

Event Detail
FB_AD_ID_RESPONSE Event
Event Object Type: com.milkmangames.nativeextensions.events.GVFacebookEvent

Facebook Mobile App Ad ID Response

FB_DIALOG_CANCELED Event  
Event Object Type: com.milkmangames.nativeextensions.events.GVFacebookEvent

Dispatched when a Facebook Dialog is cancelled

FB_DIALOG_FAILED Event  
Event Object Type: com.milkmangames.nativeextensions.events.GVFacebookEvent

Dispatched when a Facebook Dialog has failed

FB_DIALOG_FINISHED Event  
Event Object Type: com.milkmangames.nativeextensions.events.GVFacebookEvent

Dispatched When a Facebook Dialog has finished

FB_REQUEST_FAILED Event  
Event Object Type: com.milkmangames.nativeextensions.events.GVFacebookEvent

Dispatched when a Facebook Graph Request has failed

FB_REQUEST_RESPONSE Event  
Event Object Type: com.milkmangames.nativeextensions.events.GVFacebookEvent

Dispatched when a Facebook Graph Request returns a response