ActivityRecordsController class

Provides functions to create and manage user activities.

Constructors

ActivityRecordsController()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

addActivityRecord(ActivityRecordInsertOptions activityRecordInsertOptions) Future<void>
Inserts a specified activity record and corresponding data to the HUAWEI Health platform.
beginActivityRecord(ActivityRecord activityRecord) Future<void>
Starts a new activity record for the current app.
continueActivityRecord(String activityRecordId) Future<void>
deleteActivityRecord(ActivityRecordDeleteOptions activityRecordDeleteOptions) Future<void>
endActivityRecord(String activityRecordId) Future<List<ActivityRecord>>
Stops the ActivityRecord of a specific ID.
endAllActivityRecords() Future<List<ActivityRecord>>
Stops all the ongoing Activity records.
getActivityRecord(ActivityRecordReadOptions activityRecordReadOptions) Future<List<ActivityRecord>>
Reads ActivityRecord data from the HUAWEI Health platform.