AndroidForegroundServiceConstants class
Static helper class that contains all relevant Android foreground service related constants.
- Annotations
-
- @Deprecated("Please, use ForegroundServiceType and ForegroundStartMode instead.")
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
Constants
- foregroundServiceTypeCamera → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA
. - foregroundServiceTypeConnectedDevice → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
. - foregroundServiceTypeDataSync → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
. - foregroundServiceTypeLocation → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION
. - foregroundServiceTypeManifest → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST
. - foregroundServiceTypeMediaPlayback → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
. - foregroundServiceTypeMediaProjection → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION
. - foregroundServiceTypeMicrophone → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE
. - foregroundServiceTypeNone → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE
. - foregroundServiceTypePhoneCall → const int
-
Corresponds to
ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL
. - startNotSticky → const int
-
Corresponds to
Service.START_NOT_STICKY
. - startRedeliverIntent → const int
-
Corresponds to
Service.START_REDELIVER_INTENT
. - startSticky → const int
-
Corresponds to
Service.START_STICKY
. - startStickyCompatibility → const int
-
Corresponds to
Service.START_STICKY_COMPATIBILITY
.