共用方式為


ForegroundService Enum

Definition

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum ForegroundService
[<System.Flags>]
type ForegroundService = 
Inheritance
ForegroundService
Attributes

Fields

Name Value Description
TypeManifest -1
TypeNone 0
TypeDataSync 1
TypeMediaPlayback 2
TypePhoneCall 4
TypeLocation 8
TypeConnectedDevice 16
TypeMediaProjection 32
TypeCamera 64
TypeMicrophone 128
TypeHealth 256
TypeRemoteMessaging 512
TypeSystemExempted 1024
TypeShortService 2048
TypeSpecialUse 1073741824

Applies to