Package | com.distriqt.extension.facebookapi.games |
Interface | public interface GameRequest extends flash.events.IEventDispatcher |
Method | Defined By | ||
---|---|---|---|
canShow():Boolean
Indicates whether it is possible to show the Game Request dialog. | GameRequest | ||
show(content:Object):Boolean
Shows the Game Request dialog using the provided content. | GameRequest |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the user cancelled a Game Request dialog | GameRequest | |||
Dispatched when the Facebook App Invite dialog has completed successfully. | GameRequest | |||
Dispatched when an error occurred from a Game Request dialog errorMessage will contain details on the error that occurred. | GameRequest |
canShow | () | method |
public function canShow():Boolean
Indicates whether it is possible to show the Game Request dialog.
ReturnsBoolean — true if the dialog can be shown and false otherwise
|
show | () | method |
public function show(content:Object):Boolean
Shows the Game Request dialog using the provided content.
You must create the content
using the builder:
GameRequestContentBuilder
Parameters
content:Object — Game Request content created using the builder
|
Boolean — true if the dialog will be displayed and false if it is not available
|
var builder:GameRequestContentBuilder = new GameRequestContentBuilder() .setTitle( "Facebook API ANE Game Request" ) .setMessage( "Come play this game with me" ); var success:Boolean = FacebookAPI.service.gameRequest.show( builder.build() );
facebookapi:gamerequest:dialog:cancelled | Event |
com.distriqt.extension.facebookapi.events.GameRequestEvent
com.distriqt.extension.facebookapi.events.GameRequestEvent.DIALOG_CANCELLED
Dispatched when the user cancelled a Game Request dialog
facebookapi:gamerequest:dialog:completed | Event |
com.distriqt.extension.facebookapi.events.GameRequestEvent
com.distriqt.extension.facebookapi.events.GameRequestEvent.DIALOG_COMPLETED
Dispatched when the Facebook App Invite dialog has completed successfully.
facebookapi:gamerequest:dialog:error | Event |
com.distriqt.extension.facebookapi.events.GameRequestEvent
com.distriqt.extension.facebookapi.events.GameRequestEvent.DIALOG_ERROR
Dispatched when an error occurred from a Game Request dialog
errorMessage
will contain details on the error that occurred.