| Package | com.milkmangames.nativeextensions |
| Class | public class GVFacebookDispatcher |
| Inheritance | GVFacebookDispatcher GVDispatcher flash.events.EventDispatcher |
| Method | Defined By | ||
|---|---|---|---|
addAdIdListener(listener:Function):GVFacebookDispatcher
Convenience method that adds an event listener for when an async request for the Facebook Ad ID is completed. | GVFacebookDispatcher | ||
addDialogListener(listener:Function):GVFacebookDispatcher
Convenience method that adds an event listener for when a Facebook dialog request is completed. | GVFacebookDispatcher | ||
addRequestListener(listener:Function):GVFacebookDispatcher
Convenience method that adds an event listener for when an async Facebook request is completed. | GVFacebookDispatcher | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Facebook Mobile App Ad ID Response | GVFacebookDispatcher | |||
| Dispatched when a Facebook Dialog is cancelled | GVFacebookDispatcher | |||
| Dispatched when a Facebook Dialog has failed | GVFacebookDispatcher | |||
| Dispatched When a Facebook Dialog has finished | GVFacebookDispatcher | |||
| Dispatched when a Facebook Graph Request has failed | GVFacebookDispatcher | |||
| Dispatched when a Facebook Graph Request returns a response | GVFacebookDispatcher | |||
| 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
|
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
|
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
|
GVFacebookDispatcher — instance of GVFacebookDispatcher
|
See also
| FB_AD_ID_RESPONSE | Event |
com.milkmangames.nativeextensions.events.GVFacebookEventFacebook Mobile App Ad ID Response
| FB_DIALOG_CANCELED | Event |
com.milkmangames.nativeextensions.events.GVFacebookEventDispatched when a Facebook Dialog is cancelled
| FB_DIALOG_FAILED | Event |
com.milkmangames.nativeextensions.events.GVFacebookEventDispatched when a Facebook Dialog has failed
| FB_DIALOG_FINISHED | Event |
com.milkmangames.nativeextensions.events.GVFacebookEventDispatched When a Facebook Dialog has finished
| FB_REQUEST_FAILED | Event |
com.milkmangames.nativeextensions.events.GVFacebookEventDispatched when a Facebook Graph Request has failed
| FB_REQUEST_RESPONSE | Event |
com.milkmangames.nativeextensions.events.GVFacebookEventDispatched when a Facebook Graph Request returns a response