Package | com.tuarua.firebase |
Class | public class RemoteConfig |
Inheritance | RemoteConfig ![]() |
Property | Defined By | ||
---|---|---|---|
configSettings : RemoteConfigSettings [write-only] | RemoteConfig | ||
info : RemoteConfigInfo [read-only] | RemoteConfig | ||
shared : RemoteConfig [static] [read-only] | RemoteConfig |
Method | Defined By | ||
---|---|---|---|
activate():void
Asynchronously activates the most recently fetched configs, so that the fetched key value pairs take effect. | RemoteConfig | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [override] | RemoteConfig | ||
dispose():void [static] Disposes the ANE | RemoteConfig | ||
fetch(cacheExpirationSeconds:int):void
Fetches Remote Config data and sets a duration that specifies how long config data lasts. | RemoteConfig | ||
fetchAndActivate():void
Asynchronously fetches and then activates the fetched configs. | RemoteConfig | ||
getBoolean(key:String):Boolean Gets the value as a Boolean. | RemoteConfig | ||
getByteArray(key:String):ByteArray Gets the value as a ByteArray. | RemoteConfig | ||
getDouble(key:String):Number Gets the value as a Double. | RemoteConfig | ||
getKeysByPrefix(prefix:String):Vector.<String> Returns the set of parameter keys that start with the given prefix, from the default namespace
in the active config. | RemoteConfig | ||
getLong(key:String):int Gets the value as a Long. | RemoteConfig | ||
getString(key:String):String Gets the value as a String. | RemoteConfig | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void [override] | RemoteConfig | ||
setDefaults(value:Object):void Sets config defaults for parameter keys and values in the default namespace config. | RemoteConfig |
Constant | Defined By | ||
---|---|---|---|
ONE_DAY : int = 86400 [static] | RemoteConfig |
configSettings | property |
configSettings:RemoteConfigSettings
[write-only] public function set configSettings(value:RemoteConfigSettings):void
info | property |
shared | property |
activate | () | method |
public function activate():void
Asynchronously activates the most recently fetched configs, so that the fetched key value pairs take effect.
addEventListener | () | method |
override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
| |
priority:int (default = 0 )
| |
useWeakReference:Boolean (default = false )
|
dispose | () | method |
public static function dispose():void
Disposes the ANE
fetch | () | method |
public function fetch(cacheExpirationSeconds:int):void
Fetches Remote Config data and sets a duration that specifies how long config data lasts. Call activateFetched to make fetched data available to your app.
Parameters
cacheExpirationSeconds:int (default = NaN ) — Duration that defines how long fetched config data is available,
in seconds. When the config data expires, a new fetch is required.
|
fetchAndActivate | () | method |
public function fetchAndActivate():void
Asynchronously fetches and then activates the fetched configs. If the time elapsed since the last fetch from the Firebase Remote Config backend is more than the default minimum fetch interval, configs are fetched from the backend. After the fetch is complete, the configs are activated so that the fetched key value pairs take effect.
getBoolean | () | method |
public function getBoolean(key:String):Boolean
Gets the value as a Boolean.
Parameters
key:String |
Boolean |
getByteArray | () | method |
public function getByteArray(key:String):ByteArray
Gets the value as a ByteArray.
Parameters
key:String |
ByteArray |
getDouble | () | method |
public function getDouble(key:String):Number
Gets the value as a Double.
Parameters
key:String |
Number |
getKeysByPrefix | () | method |
public function getKeysByPrefix(prefix:String):Vector.<String>
Returns the set of parameter keys that start with the given prefix, from the default namespace in the active config.
Parameters
prefix:String |
Vector.<String> |
getLong | () | method |
public function getLong(key:String):int
Gets the value as a Long.
Parameters
key:String |
int |
getString | () | method |
public function getString(key:String):String
Gets the value as a String.
Parameters
key:String |
String |
removeEventListener | () | method |
override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
|
setDefaults | () | method |
public function setDefaults(value:Object):void
Sets config defaults for parameter keys and values in the default namespace config.
Parameters
value:Object |
ONE_DAY | Constant |
public static const ONE_DAY:int = 86400