Android.OS.RemoteCallbackList Class
Takes care of the grunt work of maintaining a list of remote interfaces, typically for the use of performing callbacks from a Android.App.Service to its clients.

See Also: RemoteCallbackList Members

Syntax

[Android.Runtime.Register("android/os/RemoteCallbackList", DoNotGenerateAcw=true)]
public class RemoteCallbackList : Java.Lang.Object

Remarks

Takes care of the grunt work of maintaining a list of remote interfaces, typically for the use of performing callbacks from a Android.App.Service to its clients. In particular, this:

To use this class, simply create a single instance along with your service, and call its RemoteCallbackList.register(E) and RemoteCallbackList.unregister(E) methods as client register and unregister with your service. To call back on to the registered clients, use RemoteCallbackList.BeginBroadcast, RemoteCallbackList.GetBroadcastItem(int), and RemoteCallbackList.FinishBroadcast.

If a registered callback's process goes away, this class will take care of automatically removing it from the list. If you want to do additional work in this situation, you can create a subclass that implements the RemoteCallbackList.onCallbackDied(E) method.

[Android Documentation]

Requirements

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