FirebaseDatabaseDataManager class

Stores CARP json objects in the Firebase Database.

Every time a CARP json data object is created, it is uploaded to Firebase. Hence, this interface only works when the device is online. If offline data storage and forward is needed, use the FirebaseStorageDataManager instead.

Inheritance

Properties

controller StreamController<DataManagerEvent>
getter/setter pairinherited
dataEndPoint → DataEndPoint?
no setterinherited
events Stream<DataManagerEvent>
Stream of data manager events.
no setterinherited
firebaseApp Future<FirebaseApp>
no setterinherited
firebaseDatabase Future<FirebaseFirestore>
no setter
firebaseDatabaseDataEndPoint FirebaseDatabaseDataEndPoint?
getter/setter pair
firebaseEndPoint FirebaseEndPoint?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
studyDeploymentId String
The ID of the study deployment that this manager is handling.
no setterinherited
type String
The type of this data manager as enumerated in DataEndPointType.
no setteroverride
user Future<User?>
Returns the current authenticated user.
no setterinherited

Methods

addEvent(DataManagerEvent event) → void
inherited
close() Future
Close the data manager (e.g. closing connections).
inherited
initialize(String studyDeploymentId, DataEndPoint dataEndPoint, Stream<DataPoint> data) Future
Initialize the data manager by specifying the study deployment id, the DataEndPoint, and the stream of DataPoint events to handle.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDataPoint(DataPoint dataPoint) → void
On each data event from the data stream, the onDataPoint handler is called.
override
onDone() → void
When the data stream closes, the onDone handler is called.
inherited
onError(dynamic error) → void
When an error event is send on the stream, the onError handler is called.
inherited
toJsonString(Object object) String
Encode object to a JSON string.
inherited
toString() String
A string representation of this object.
inherited
uploadData(DataPoint dataPoint) Future<bool>
Called every time a JSON CARP data object is to be uploaded.

Operators

operator ==(Object other) bool
The equality operator.
inherited