Provider FileProvider
Package: | Ext.air |
Defined In: | FileProvider.js |
Class: | FileProvider |
Extends: | Provider |
Config Options | Defined By | |
---|---|---|
defaultState : Object The default state if no state file can be found | FileProvider | |
file : String The file name to use for the state file in the application storage directory | FileProvider |
Method | Defined By | |
---|---|---|
FileProvider( Object config )
Parameters:
| FileProvider | |
clear( String name )
:
voidClears a value from the state Clears a value from the state Parameters:
| Provider | |
decodeValue( String value )
:
MixedDecodes a string previously encoded with encodeValue. Decodes a string previously encoded with encodeValue. Parameters:
| Provider | |
encodeValue( Mixed value )
:
StringEncodes a value including type information. Decode with decodeValue. Encodes a value including type information. Decode with decodeValue. Parameters:
| Provider | |
get( String name , Mixed defaultValue )
:
MixedReturns the current value for a key Returns the current value for a key Parameters:
| Provider | |
set( String name , Mixed value )
:
voidSets the value for a key Sets the value for a key Parameters:
| Provider |
Event | Defined By | |
---|---|---|
statechange :
( Provider this , String key , String value )
Fires when a state change occurs. Fires when a state change occurs. Listeners will be called with the following arguments:
| Provider |