BroadcastReceiver.PeekService(Context, Intent) BroadcastReceiver.PeekService(Context, Intent) Method

Definition

Provide a binder to an already-running service.

[Android.Runtime.Register("peekService", "(Landroid/content/Context;Landroid/content/Intent;)Landroid/os/IBinder;", "GetPeekService_Landroid_content_Context_Landroid_content_Intent_Handler", ApiSince=3)]
public virtual Android.OS.IBinder PeekService (Android.Content.Context myContext, Android.Content.Intent service);
abstract member PeekService : Android.Content.Context * Android.Content.Intent -> Android.OS.IBinder
override this.PeekService : Android.Content.Context * Android.Content.Intent -> Android.OS.IBinder

Parameters

myContext
Context Context

The Context that had been passed to OnReceive(Context, Intent)

service
Intent Intent

The Intent indicating the service you wish to use. See StartService(Intent) for more information.

Returns

Remarks

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