FirebaseStorageDataManager class
Stores files with Datum
json objects in the Firebase Storage file store.
Works closely with the FileDataManager
which is responsible for writing
and zipping files to the local device.
Files are transferred when the device is online and buffered when offline. Once the file has been transferred to Firebase, it is deleted on the local device.
- Inheritance
-
- Object
- AbstractDataManager
- FirebaseDataManager
- FirebaseStorageDataManager
Constructors
Properties
-
controller
↔ StreamController<
DataManagerEvent> -
getter/setter pairinherited
- dataEndPoint → DataEndPoint?
-
no setterinherited
-
events
→ Stream<
DataManagerEvent> -
Stream of data manager events.
no setterinherited
- fileDataManager ↔ FileDataManager
-
getter/setter pair
-
firebaseApp
→ Future<
FirebaseApp> -
no setterinherited
- firebaseEndPoint ↔ FirebaseEndPoint?
-
getter/setter pairinherited
- firebasePath → String
-
no setter
-
firebaseStorage
→ Future<
FirebaseStorage> -
no setter
- firebaseStorageDataEndPoint ↔ FirebaseStorageDataEndPoint?
-
getter/setter pair
- 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 ofDataPoint
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited