PackageManager.GetServiceInfo(ComponentName, PackageInfoFlags) Method

Definition

Retrieve all of the information we know about a particular service class.

[Android.Runtime.Register("getServiceInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ServiceInfo;", "GetGetServiceInfo_Landroid_content_ComponentName_IHandler")]
public abstract Android.Content.PM.ServiceInfo GetServiceInfo (Android.Content.ComponentName component, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getServiceInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ServiceInfo;", "GetGetServiceInfo_Landroid_content_ComponentName_IHandler")>]
abstract member GetServiceInfo : Android.Content.ComponentName * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ServiceInfo

Parameters

component
ComponentName

The full component name (i.e. com.google.apps.media/com.google.apps.media. BackgroundPlayback) of a Service class.

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

ServiceInfo

A ServiceInfo object containing information about the service.

Attributes

Exceptions

Remarks

Java documentation for android.content.pm.PackageManager.getServiceInfo(android.content.ComponentName, int).

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.

Applies to