| Method | Defined By | ||
|---|---|---|---|
addEventListener(eventType:String, delegate:Function):void [static] | MochiEvents | ||
endPlay():void [static] | MochiEvents | ||
getAchievements(properties:Object = null):void [static]
Method: getAchievements
Calls GAME_ACHIEVEMENTS event, passing an object with all achievements in system
| MochiEvents | ||
getVersion():String [static] | MochiEvents | ||
removeEventListener(eventType:String, delegate:Function):void [static] | MochiEvents | ||
setNotifications(style:Object):void [static] | MochiEvents | ||
showAwards(options:Object = null):void [static] | MochiEvents | ||
startPlay(tag:String = gameplay):void [static] | MochiEvents | ||
startSession(achievementID:String):void [static] | MochiEvents | ||
trackEvent(tag:String, value:* = null):void [static] | MochiEvents | ||
triggerEvent(eventType:String, args:Object):void [static] | MochiEvents | ||
unlockAchievement(properties:Object):void [static] | MochiEvents | ||
| Constant | Defined By | ||
|---|---|---|---|
| ACHIEVEMENT_NEW : String = AchievementReceived [static] | MochiEvents | ||
| ACHIEVEMENTS_OWNED : String = AchievementOwned [static] | MochiEvents | ||
| ALIGN_BOTTOM : String = ALIGN_B [static] | MochiEvents | ||
| ALIGN_BOTTOM_LEFT : String = ALIGN_BL [static] | MochiEvents | ||
| ALIGN_BOTTOM_RIGHT : String = ALIGN_BR [static] | MochiEvents | ||
| ALIGN_CENTER : String = ALIGN_C [static] | MochiEvents | ||
| ALIGN_LEFT : String = ALIGN_L [static] | MochiEvents | ||
| ALIGN_RIGHT : String = ALIGN_R [static] | MochiEvents | ||
| ALIGN_TOP : String = ALIGN_T [static] | MochiEvents | ||
| ALIGN_TOP_LEFT : String = ALIGN_TL [static] | MochiEvents | ||
| ALIGN_TOP_RIGHT : String = ALIGN_TR [static] | MochiEvents | ||
| ERROR : String = Error [static] | MochiEvents | ||
| FORMAT_LONG : String = LongForm [static] | MochiEvents | ||
| FORMAT_NONE : String = NoForm [static] | MochiEvents | ||
| FORMAT_SHORT : String = ShortForm [static] | MochiEvents | ||
| GAME_ACHIEVEMENTS : String = GameAchievements [static] | MochiEvents | ||
| IO_ERROR : String = IOError [static] | MochiEvents | ||
| IO_PENDING : String = IOPending [static] | MochiEvents | ||
| addEventListener | () | method |
public static function addEventListener(eventType:String, delegate:Function):voidParameters
eventType:String | |
delegate:Function |
| endPlay | () | method |
public static function endPlay():void| getAchievements | () | method |
public static function getAchievements(properties:Object = null):voidMethod: getAchievements Calls GAME_ACHIEVEMENTS event, passing an object with all achievements in system
Parameters
properties:Object (default = null) |
| getVersion | () | method |
public static function getVersion():StringReturnsString |
| removeEventListener | () | method |
public static function removeEventListener(eventType:String, delegate:Function):voidParameters
eventType:String | |
delegate:Function |
| setNotifications | () | method |
public static function setNotifications(style:Object):voidParameters
style:Object |
| showAwards | () | method |
public static function showAwards(options:Object = null):voidParameters
options:Object (default = null) |
| startPlay | () | method |
public static function startPlay(tag:String = gameplay):voidParameters
tag:String (default = gameplay) |
| startSession | () | method |
public static function startSession(achievementID:String):voidParameters
achievementID:String |
| trackEvent | () | method |
public static function trackEvent(tag:String, value:* = null):voidParameters
tag:String | |
value:* (default = null) |
| triggerEvent | () | method |
public static function triggerEvent(eventType:String, args:Object):voidParameters
eventType:String | |
args:Object |
| unlockAchievement | () | method |
public static function unlockAchievement(properties:Object):voidParameters
properties:Object |
| ACHIEVEMENT_NEW | Constant |
public static const ACHIEVEMENT_NEW:String = AchievementReceived| ACHIEVEMENTS_OWNED | Constant |
public static const ACHIEVEMENTS_OWNED:String = AchievementOwned| ALIGN_BOTTOM | Constant |
public static const ALIGN_BOTTOM:String = ALIGN_B| ALIGN_BOTTOM_LEFT | Constant |
public static const ALIGN_BOTTOM_LEFT:String = ALIGN_BL| ALIGN_BOTTOM_RIGHT | Constant |
public static const ALIGN_BOTTOM_RIGHT:String = ALIGN_BR| ALIGN_CENTER | Constant |
public static const ALIGN_CENTER:String = ALIGN_C| ALIGN_LEFT | Constant |
public static const ALIGN_LEFT:String = ALIGN_L| ALIGN_RIGHT | Constant |
public static const ALIGN_RIGHT:String = ALIGN_R| ALIGN_TOP | Constant |
public static const ALIGN_TOP:String = ALIGN_T| ALIGN_TOP_LEFT | Constant |
public static const ALIGN_TOP_LEFT:String = ALIGN_TL| ALIGN_TOP_RIGHT | Constant |
public static const ALIGN_TOP_RIGHT:String = ALIGN_TR| ERROR | Constant |
public static const ERROR:String = Error| FORMAT_LONG | Constant |
public static const FORMAT_LONG:String = LongForm| FORMAT_NONE | Constant |
public static const FORMAT_NONE:String = NoForm| FORMAT_SHORT | Constant |
public static const FORMAT_SHORT:String = ShortForm| GAME_ACHIEVEMENTS | Constant |
public static const GAME_ACHIEVEMENTS:String = GameAchievements| IO_ERROR | Constant |
public static const IO_ERROR:String = IOError| IO_PENDING | Constant |
public static const IO_PENDING:String = IOPending