Dela via


ActivityManager.GetRunningServiceControlPanel(ComponentName) Method

Definition

Returns a PendingIntent you can start to show a control panel for the given running service.

[Android.Runtime.Register("getRunningServiceControlPanel", "(Landroid/content/ComponentName;)Landroid/app/PendingIntent;", "GetGetRunningServiceControlPanel_Landroid_content_ComponentName_Handler")]
public virtual Android.App.PendingIntent? GetRunningServiceControlPanel (Android.Content.ComponentName? service);
[<Android.Runtime.Register("getRunningServiceControlPanel", "(Landroid/content/ComponentName;)Landroid/app/PendingIntent;", "GetGetRunningServiceControlPanel_Landroid_content_ComponentName_Handler")>]
abstract member GetRunningServiceControlPanel : Android.Content.ComponentName -> Android.App.PendingIntent
override this.GetRunningServiceControlPanel : Android.Content.ComponentName -> Android.App.PendingIntent

Parameters

service
ComponentName

Returns

Attributes

Exceptions

Remarks

Returns a PendingIntent you can start to show a control panel for the given running service. If the service does not have a control panel, null is returned.

Java documentation for android.app.ActivityManager.getRunningServiceControlPanel(android.content.ComponentName).

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