Packagecom.tuarua.firebase
Classpublic final class Firestore
InheritanceFirestore Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  loggingEnabled : Boolean
[static] Whether logging from the Firestore client is enabled/disabled.
Firestore
  settings : FirestoreSettings
[static]
Firestore
Public Methods
 MethodDefined By
  
Firestore
  
collection(collectionPath:String):CollectionReference
Firestore
  
disableNetwork(listener:Function = null):void
Disables usage of the network by this Firestore instance.
Firestore
  
dispose():void
[static] Disposes the ANE
Firestore
  
document(documentPath:String = null):DocumentReference
Firestore
  
enableNetwork(listener:Function = null):void
Re-enables usage of the network by this Firestore instance after a prior call to disableNetwork.
Firestore
Property Detail
loggingEnabledproperty
loggingEnabled:Boolean

Whether logging from the Firestore client is enabled/disabled.


Implementation
    public static function get loggingEnabled():Boolean
    public static function set loggingEnabled(value:Boolean):void
settingsproperty 
settings:FirestoreSettings


Implementation
    public static function get settings():FirestoreSettings
    public static function set settings(value:FirestoreSettings):void
Method Detail
batch()method
public function batch():WriteBatch

Returns
WriteBatch
collection()method 
public function collection(collectionPath:String):CollectionReference

Parameters

collectionPath:String

Returns
CollectionReference
disableNetwork()method 
public function disableNetwork(listener:Function = null):void

Disables usage of the network by this Firestore instance. It can be re-enabled by via enableNetwork. While the network is disabled, any snapshot listeners or get calls will return results from cache and any write operations will be queued until the network is restored.

Parameters

listener:Function (default = null) — Optional Function to be called on completion. The function is expected to have the following signature:
     function callback(error:FirestoreError):void {
     
     }
     

dispose()method 
public static function dispose():void

Disposes the ANE

document()method 
public function document(documentPath:String = null):DocumentReference

Parameters

documentPath:String (default = null)

Returns
DocumentReference
enableNetwork()method 
public function enableNetwork(listener:Function = null):void

Re-enables usage of the network by this Firestore instance after a prior call to disableNetwork.

Parameters

listener:Function (default = null) — Optional Function to be called on completion. The function is expected to have the following signature:
     function callback(error:FirestoreError):void {
     
     }