ForegroundServiceType enum
Determines the nature of the service (Also needs to be declared inside AndroidManifest.xml)
Constructors
- ForegroundServiceType()
-
const
Values
- none → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE
. - manifest → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST
. - dataSync → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
. - mediaPlayback → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
. - phoneCall → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL
. - connectedDevice → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
. - mediaProjection → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION
. - location → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION
. - camera → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA
. - microphone → const ForegroundServiceType
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE
.
Properties
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<
ForegroundServiceType> - A constant List of the values in this enum, in order of their declaration.