Android Guides | Samples

Android.OS.IInterface.AsBinder Method

Retrieve the Binder object associated with this interface.

Syntax

[Android.Runtime.Register("asBinder", "()Landroid/os/IBinder;", "GetAsBinderHandler:Android.OS.IInterfaceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IBinder AsBinder ()

Remarks

Retrieve the Binder object associated with this interface. You must use this instead of a plain cast, so that proxy objects can return the correct result.

[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