Share via


IInterface.AsBinder Method

Definition

Retrieve the Binder object associated with this interface.

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

Returns

Attributes

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.

Java documentation for android.os.IInterface.asBinder().

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