ActivityRecord class

Activity record class, which records the basic information about an activity of the user. For example, for an outdoor running activity, information including the start time, end time, activity record name, identifier, description, activity type (as defined in HiHealthActivities), and activity duration will be recorded.

Constructors

ActivityRecord({required String? activityTypeId, DateTime? startTime, DateTime? endTime, String? id, String? name, String? description, String? timeZone, int? activeTimeMillis, ActivitySummary? activitySummary, DeviceInfo? deviceInfo})
ActivityRecord.fromMap(Map map)
factory

Properties

activeTimeMillis int?
Activity duration in milliseconds.
getter/setter pair
activitySummary ActivitySummary?
getter/setter pair
activityTypeId String?
Activity type corresponding to the activity record.
getter/setter pair
description String?
Description of the activity record.
getter/setter pair
deviceInfo DeviceInfo?
getter/setter pair
endTime DateTime?
The end time of the activity record.
getter/setter pair
hasDurationTime bool
Indicates whether the activity record has durations.
no setter
hashCode int
The hash code for this object.
no setteroverride
id String?
Identifier of the activity record.
getter/setter pair
isKeepGoing bool
Indicates whether an activity record is in progress.
no setter
name String?
Name of the activity record.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime?
The start time of the activity record.
getter/setter pair
timeZone String?
Time Zone.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Represents the ActivityRecord object as a Map.
toString() String
A string representation of this object.
override

Operators

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

Constants

EXTRA_ACTIVITY_RECORD → const String
ActivityRecord object contained in additional inforation.
MIME_TYPE_PREFIX → const String
General prefix of an activity record.