AndroidServiceForegroundType enum
The available foreground types for an Android service.
Values
- foregroundServiceTypeManifest → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST
.const AndroidServiceForegroundType(-1)
- foregroundServiceTypeNone → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE
.const AndroidServiceForegroundType(0)
- foregroundServiceTypeDataSync → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
.const AndroidServiceForegroundType(1)
- foregroundServiceTypeMediaPlayback → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
.const AndroidServiceForegroundType(2)
- foregroundServiceTypePhoneCall → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL
.const AndroidServiceForegroundType(4)
- foregroundServiceTypeLocation → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION
.const AndroidServiceForegroundType(8)
- foregroundServiceTypeConnectedDevice → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
.const AndroidServiceForegroundType(16)
- foregroundServiceTypeMediaProjection → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION
.const AndroidServiceForegroundType(32)
- foregroundServiceTypeCamera → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA
.const AndroidServiceForegroundType(64)
- foregroundServiceTypeMicrophone → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE
.const AndroidServiceForegroundType(128)
- foregroundServiceTypeHealth → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_HEALTH
.const AndroidServiceForegroundType(256)
- foregroundServiceTypeRemoteMessaging → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_REMOTE_MESSAGING
.const AndroidServiceForegroundType(512)
- foregroundServiceTypeSystemExempted → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED
.const AndroidServiceForegroundType(1024)
- foregroundServiceTypeShortService → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE
.const AndroidServiceForegroundType(2048)
- foregroundServiceTypeSpecialUse → const AndroidServiceForegroundType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE
.const 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.