ErrorCodes enum

Define the error codes that may occur in the service.

Inheritance
Available extensions

Values

ALREADY_STARTED → const ErrorCodes

Occur when the service has already been started and the start function is called.

LOCATION_SERVICE_DISABLED → const ErrorCodes

Occur when location service are disabled. When this error occur, you should notify the user and request activation.

LOCATION_PERMISSION_DENIED → const ErrorCodes

Occur when location permission is denied.

LOCATION_PERMISSION_PERMANENTLY_DENIED → const ErrorCodes

Occur when location permission is permanently denied. In this case, the user must manually set the permission.

ACTIVITY_RECOGNITION_PERMISSION_DENIED → const ErrorCodes

Occur when activity recognition permission is denied.

ACTIVITY_RECOGNITION_PERMISSION_PERMANENTLY_DENIED → const ErrorCodes

Occur when activity recognition permission is permanently denied. In this case, the user must manually set the permission.

ACTIVITY_NOT_REGISTERED → const ErrorCodes

Occur when a channel is called when an activity object is not registered in the android platform.

PERMISSION_REQUEST_CANCELLED → const ErrorCodes

Occur when permission is cancelled.

ACTIVITY_UPDATES_REQUEST_FAILED → const ErrorCodes

Stream Error Occur when activity updates request fails.

ACTIVITY_UPDATES_REMOVE_FAILED → const ErrorCodes

Stream Error Occur when activity updates remove fails.

ACTIVITY_DATA_ENCODING_FAILED → const ErrorCodes

Stream Error Occur when an error occurs in encoding the recognized activity data.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<ErrorCodes>
A constant List of the values in this enum, in order of their declaration.