ServiceInfo ServiceInfo Class

Definition

Information you can retrieve about a particular application service.

[Android.Runtime.Register("android/content/pm/ServiceInfo", ApiSince=1, DoNotGenerateAcw=true)]
public class ServiceInfo : Android.Content.PM.ComponentInfo, Android.OS.IParcelable, IDisposable
type ServiceInfo = class
    inherit ComponentInfo
    interface IParcelable
    interface IJavaObject
    interface IDisposable
Inheritance
Attributes
Implements

Remarks

Android platform documentation

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.

Constructors

ServiceInfo() ServiceInfo()
ServiceInfo(IntPtr, JniHandleOwnership) ServiceInfo(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ServiceInfo(ServiceInfo) ServiceInfo(ServiceInfo)

Fields

FlagExternalService FlagExternalService
FlagIsolatedProcess FlagIsolatedProcess

Bit in Flags: If set, the service will run in its own isolated process.

FlagSingleUser FlagSingleUser

Bit in Flags: If set, a single instance of the service will run for all users on the device.

FlagStopWithTask FlagStopWithTask

Bit in Flags: If set, the service will automatically be stopped by the system if the user removes a task that is rooted in one of the application's activities.

Properties

ApplicationInfo ApplicationInfo

Global information about the application/package this component is a part of.

(Inherited from ComponentInfo)
Banner Banner

A drawable resource identifier (in the package's resources) of this component's banner.

(Inherited from PackageItemInfo)
BannerResource BannerResource

Return the banner resource identifier to use for this component.

(Inherited from ComponentInfo)
Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Creator Creator
DescriptionRes DescriptionRes

A string resource identifier (in the package's resources) containing a user-readable description of the component.

(Inherited from ComponentInfo)
DirectBootAware DirectBootAware Inherited from ComponentInfo
Enabled Enabled

Indicates whether or not this component may be instantiated.

(Inherited from ComponentInfo)
Exported Exported

Set to true if this component is available for use by other applications.

(Inherited from ComponentInfo)
Flags Flags

Options that have been set in the service declaration in the manifest.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Icon Icon

A drawable resource identifier (in the package's resources) of this component's icon.

(Inherited from PackageItemInfo)
IconResource IconResource

Return the icon resource identifier to use for this component.

(Inherited from ComponentInfo)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsEnabled IsEnabled

Return whether this component and its enclosing application are enabled.

(Inherited from ComponentInfo)
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LabelRes LabelRes

A string resource identifier (in the package's resources) of this component's label.

(Inherited from PackageItemInfo)
Logo Logo

A drawable resource identifier (in the package's resources) of this component's logo.

(Inherited from PackageItemInfo)
LogoResource LogoResource

Return the logo resource identifier to use for this component.

(Inherited from ComponentInfo)
MetaData MetaData

Additional meta-data associated with this component.

(Inherited from PackageItemInfo)
Name Name

Public name of this item.

(Inherited from PackageItemInfo)
NonLocalizedLabel NonLocalizedLabel

The string provided in the AndroidManifest file, if any.

(Inherited from PackageItemInfo)
PackageName PackageName

Name of the package that this item is in.

(Inherited from PackageItemInfo)
PeerReference PeerReference Inherited from Object
Permission Permission

Optional name of a permission required to be able to access this Service.

ProcessName ProcessName

The name of the process this component should run in.

(Inherited from ComponentInfo)
SplitName SplitName Inherited from ComponentInfo
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
DescribeContents() DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Dump(IPrinter, String) Dump(IPrinter, String)
DumpBack(IPrinter, String) DumpBack(IPrinter, String) Inherited from PackageItemInfo
DumpFront(IPrinter, String) DumpFront(IPrinter, String) Inherited from PackageItemInfo
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
LoadBanner(PackageManager) LoadBanner(PackageManager)

Retrieve the current graphical banner associated with this item.

(Inherited from PackageItemInfo)
LoadIcon(PackageManager) LoadIcon(PackageManager)

Retrieve the current graphical icon associated with this item.

(Inherited from PackageItemInfo)
LoadLabel(PackageManager) LoadLabel(PackageManager) Inherited from PackageItemInfo
LoadLabelFormatted(PackageManager) LoadLabelFormatted(PackageManager)

Retrieve the current textual label associated with this item.

(Inherited from PackageItemInfo)
LoadLogo(PackageManager) LoadLogo(PackageManager)

Retrieve the current graphical logo associated with this item.

(Inherited from PackageItemInfo)
LoadUnbadgedIcon(PackageManager) LoadUnbadgedIcon(PackageManager) Inherited from PackageItemInfo
LoadXmlMetaData(PackageManager, String) LoadXmlMetaData(PackageManager, String)

Load an XML resource attached to the meta-data of this item.

(Inherited from PackageItemInfo)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags) Inherited from PackageItemInfo

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to