ServiceInfo

Class of android.content.pm · ServiceInfo.java · Android's reference

public class ServiceInfo extends ComponentInfo implements android.os.Parcelable

ServiceInfo ← ComponentInfo ← PackageItemInfo

A service of a package.

Fields

public static final int FOREGROUND_SERVICE_TYPE_NONE = 0 source
public static final int FOREGROUND_SERVICE_TYPE_DATA_SYNC = 1 source
public static final int FOREGROUND_SERVICE_TYPE_MANIFEST = -1 source
public static final int FOREGROUND_SERVICE_TYPE_SHORT_SERVICE = 2048 source
public String permission source
public int flags source
public int foregroundServiceType source

Constructors

public ServiceInfo() empty body source
public ServiceInfo(ServiceInfo o) source

Methods

public int getForegroundServiceType() source
public int describeContents() source
public void writeToParcel(android.os.Parcel dest, int f) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.