AndroidServiceForegroundType enum

The available foreground types for an Android service.

Inheritance

Constructors

AndroidServiceForegroundType(int value)
Constructs an instance of AndroidServiceForegroundType.
const

Values

foregroundServiceTypeManifest → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST.

AndroidServiceForegroundType(-1)
foregroundServiceTypeNone → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE.

AndroidServiceForegroundType(0)
foregroundServiceTypeDataSync → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC.

AndroidServiceForegroundType(1)
foregroundServiceTypeMediaPlayback → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK.

AndroidServiceForegroundType(2)
foregroundServiceTypePhoneCall → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL.

AndroidServiceForegroundType(4)
foregroundServiceTypeLocation → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION.

AndroidServiceForegroundType(8)
foregroundServiceTypeConnectedDevice → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE.

AndroidServiceForegroundType(16)
foregroundServiceTypeMediaProjection → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION.

AndroidServiceForegroundType(32)
foregroundServiceTypeCamera → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA.

AndroidServiceForegroundType(64)
foregroundServiceTypeMicrophone → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE.

AndroidServiceForegroundType(128)
foregroundServiceTypeHealth → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_HEALTH.

AndroidServiceForegroundType(256)
foregroundServiceTypeRemoteMessaging → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_REMOTE_MESSAGING.

AndroidServiceForegroundType(512)
foregroundServiceTypeSystemExempted → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED.

AndroidServiceForegroundType(1024)
foregroundServiceTypeShortService → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE.

AndroidServiceForegroundType(2048)
foregroundServiceTypeSpecialUse → const AndroidServiceForegroundType

Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE.

AndroidServiceForegroundType(1073741824)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The integer representation of AndroidServiceForegroundType.
final

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<AndroidServiceForegroundType>
A constant List of the values in this enum, in order of their declaration.