AndroidServiceForegroundType class Null safety

The available foreground types for an Android service.

Annotations

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
The integer representation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

foregroundServiceTypeCamera → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA.
foregroundServiceTypeConnectedDevice → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE.
foregroundServiceTypeDataSync → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC.
foregroundServiceTypeLocation → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION.
foregroundServiceTypeManifest → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST.
foregroundServiceTypeMediaPlayback → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK.
foregroundServiceTypeMediaProjection → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION.
foregroundServiceTypeMicrophone → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE.
foregroundServiceTypeNone → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE.
foregroundServiceTypePhoneCall → const AndroidServiceForegroundType
Corresponds to ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL.