ServiceInfo.ForegroundServiceTypeNone Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The default foreground service type if not been set in manifest file.
[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_NONE", ApiSince=29)]
public const Android.Content.PM.ForegroundService ForegroundServiceTypeNone = 0;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_NONE", ApiSince=29)>]
val mutable ForegroundServiceTypeNone : Android.Content.PM.ForegroundService
Field Value
Value = 0Implements
- Attributes
Remarks
The default foreground service type if not been set in manifest file.
Apps targeting API level android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE
and later should NOT use this type, calling android.app.Service#startForeground(int, android.app.Notification, int)
with this type will get a android.app.InvalidForegroundServiceTypeException
.
This member is deprecated. Do not use.
Java documentation for android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.