StoredActivityFile class Activity Store
A file attached to an Activity: the canonical recorded track, a route thumbnail or a media file.
See also:
- ActivityStore.addActivityFile - Attach a device file to a stored activity.
- ActivityStore.removeActivityFile - Remove an attached file.
- Annotations
Constructors
- StoredActivityFile({int localFileID = -1, int activityFileID = -1, int activityID = -1, ActivityFileType fileType = ActivityFileType.sensors, String fileUrl = '', String localPath = '', int fileSizeBytes = 0, int createdAtMillis = 0, Coordinates? coordinates})
- Creates a StoredActivityFile.
Properties
- activityFileID ↔ int
-
Server id; -1 until uploaded.
getter/setter pair
- activityID ↔ int
-
Server id of the owning activity; -1 until synced.
getter/setter pair
- coordinates ↔ Coordinates
-
The capture location, such as the position a photo was taken at.
getter/setter pair
- createdAtMillis ↔ int
-
The creation time in milliseconds since epoch (UTC).
getter/setter pair
- fileSizeBytes ↔ int
-
The file size in bytes.
getter/setter pair
- fileType ↔ ActivityFileType
-
The file type.
getter/setter pair
- fileUrl ↔ String
-
The bucket-relative path of the file in storage; empty until uploaded.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- localFileID ↔ int
-
Local store id, the handle for ActivityStore.removeActivityFile; -1 when not from the local store.
getter/setter pair
- localPath ↔ String
-
The device path; relative to ActivityStoreConfig.logsDir when the file lies under it.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited