Android.Content.BroadcastReceiver.PeekService Method
Provide a binder to an already-running service.

Syntax

[Android.Runtime.Register("peekService", "(Landroid/content/Context;Landroid/content/Intent;)Landroid/os/IBinder;", "GetPeekService_Landroid_content_Context_Landroid_content_Intent_Handler")]
public virtual Android.OS.IBinder PeekService (Context myContext, Intent service)

Parameters

myContext
The Context that had been passed to BroadcastReceiver.OnReceive(Context, Android.Content.Intent)
service
The Intent indicating the service you wish to use. See Context.StartService(Intent) for more information.

Returns

Documentation for this section has not yet been entered.

Remarks

Provide a binder to an already-running service. This method is synchronous and will not start the target service if it is not present, so it is safe to call from BroadcastReceiver.OnReceive(Context, Android.Content.Intent).

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3