Packagecom.tuarua.firebase
Classpublic class RemoteConfig
InheritanceRemoteConfig Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  configSettings : RemoteConfigSettings
[write-only]
RemoteConfig
  info : RemoteConfigInfo
[read-only]
RemoteConfig
  shared : RemoteConfig
[static] [read-only]
RemoteConfig
Public Methods
 MethodDefined 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
  
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
Public Constants
 ConstantDefined By
  ONE_DAY : int = 86400
[static]
RemoteConfig
Property Detail
configSettingsproperty
configSettings:RemoteConfigSettings  [write-only]


Implementation
    public function set configSettings(value:RemoteConfigSettings):void
infoproperty 
info:RemoteConfigInfo  [read-only]


Implementation
    public function get info():RemoteConfigInfo
sharedproperty 
shared:RemoteConfig  [read-only]


Implementation
    public static function get shared():RemoteConfig
Method Detail
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

Returns
Boolean
getByteArray()method 
public function getByteArray(key:String):ByteArray

Gets the value as a ByteArray.

Parameters

key:String

Returns
ByteArray
getDouble()method 
public function getDouble(key:String):Number

Gets the value as a Double.

Parameters

key:String

Returns
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

Returns
Vector.<String>
getLong()method 
public function getLong(key:String):int

Gets the value as a Long.

Parameters

key:String

Returns
int
getString()method 
public function getString(key:String):String

Gets the value as a String.

Parameters

key:String

Returns
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

Constant Detail
ONE_DAYConstant
public static const ONE_DAY:int = 86400