Packagecom.myflashlab.air.extensions.gameCenter
Classpublic class Cache
InheritanceCache Inheritance Object

The ANE keeps a reference to different native instances in the life time of your app. You should use this class to empty cache from time to time to make sure unnecessary data is freed out of memory while your app is running.

Use getters like playersInstances to know the number of cached instances on the native side. usually if the number of instances are less than 500, you won't need to bother cleaning it out.

to clear instances, you must set the kind of objects first. for example if you want to clean the players instances, you must set players = true; and all the other ones to false. and then call the clear() method.



Public Properties
 PropertyDefined By
  achievements : Boolean
Cache
  achievementsDesc : Boolean
Cache
  achievementsDescInstances : int
[read-only]
Cache
  achievementsInstances : int
[read-only]
Cache
  challenges : Boolean
Cache
  challengesInstances : int
[read-only]
Cache
  leaderboards : Boolean
Cache
  leaderboardSets : Boolean
Cache
  leaderboardSetsInstances : int
[read-only]
Cache
  leaderboardsInstances : int
[read-only]
Cache
  players : Boolean
Cache
  playersInstances : int
[read-only]
Cache
  savedGames : Boolean
Cache
  savedGamesInstances : int
[read-only]
Cache
  scores : Boolean
Cache
  scoresInstances : int
[read-only]
Cache
Public Methods
 MethodDefined By
  
clear():void
Cache
Property Detail
achievementsproperty
public var achievements:Boolean

achievementsDescproperty 
public var achievementsDesc:Boolean

achievementsDescInstancesproperty 
achievementsDescInstances:int  [read-only]


Implementation
    public function get achievementsDescInstances():int
achievementsInstancesproperty 
achievementsInstances:int  [read-only]


Implementation
    public function get achievementsInstances():int
challengesproperty 
public var challenges:Boolean

challengesInstancesproperty 
challengesInstances:int  [read-only]


Implementation
    public function get challengesInstances():int
leaderboardsproperty 
public var leaderboards:Boolean

leaderboardSetsproperty 
public var leaderboardSets:Boolean

leaderboardSetsInstancesproperty 
leaderboardSetsInstances:int  [read-only]


Implementation
    public function get leaderboardSetsInstances():int
leaderboardsInstancesproperty 
leaderboardsInstances:int  [read-only]


Implementation
    public function get leaderboardsInstances():int
playersproperty 
public var players:Boolean

playersInstancesproperty 
playersInstances:int  [read-only]


Implementation
    public function get playersInstances():int
savedGamesproperty 
public var savedGames:Boolean

savedGamesInstancesproperty 
savedGamesInstances:int  [read-only]


Implementation
    public function get savedGamesInstances():int
scoresproperty 
public var scores:Boolean

scoresInstancesproperty 
scoresInstances:int  [read-only]


Implementation
    public function get scoresInstances():int
Method Detail
clear()method
public function clear():void