| Package | com.myflashlab.air.extensions.gameCenter |
| Class | public class Cache |
| Inheritance | Cache 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.
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
clear():void | Cache | ||
| achievements | property |
public var achievements:Boolean| achievementsDesc | property |
public var achievementsDesc:Boolean| achievementsDescInstances | property |
achievementsDescInstances:int [read-only] public function get achievementsDescInstances():int| achievementsInstances | property |
achievementsInstances:int [read-only] public function get achievementsInstances():int| challenges | property |
public var challenges:Boolean| challengesInstances | property |
challengesInstances:int [read-only] public function get challengesInstances():int| leaderboards | property |
public var leaderboards:Boolean| leaderboardSets | property |
public var leaderboardSets:Boolean| leaderboardSetsInstances | property |
leaderboardSetsInstances:int [read-only] public function get leaderboardSetsInstances():int| leaderboardsInstances | property |
leaderboardsInstances:int [read-only] public function get leaderboardsInstances():int| players | property |
public var players:Boolean| playersInstances | property |
playersInstances:int [read-only] public function get playersInstances():int| savedGames | property |
public var savedGames:Boolean| savedGamesInstances | property |
savedGamesInstances:int [read-only] public function get savedGamesInstances():int| scores | property |
public var scores:Boolean| scoresInstances | property |
scoresInstances:int [read-only] public function get scoresInstances():int| clear | () | method |
public function clear():void