다음을 통해 공유


Binder.AttachInterface(IInterface, String) Method

Definition

Convenience method for associating a specific interface with the Binder.

[Android.Runtime.Register("attachInterface", "(Landroid/os/IInterface;Ljava/lang/String;)V", "GetAttachInterface_Landroid_os_IInterface_Ljava_lang_String_Handler")]
public virtual void AttachInterface (Android.OS.IInterface? owner, string? descriptor);
[<Android.Runtime.Register("attachInterface", "(Landroid/os/IInterface;Ljava/lang/String;)V", "GetAttachInterface_Landroid_os_IInterface_Ljava_lang_String_Handler")>]
abstract member AttachInterface : Android.OS.IInterface * string -> unit
override this.AttachInterface : Android.OS.IInterface * string -> unit

Parameters

owner
IInterface
descriptor
String
Attributes

Remarks

Convenience method for associating a specific interface with the Binder. After calling, #queryLocalInterface(String) queryLocalInterface() will be implemented for you to return the given owner IInterface when the corresponding descriptor is requested.

Java documentation for android.os.Binder.attachInterface(android.os.IInterface, java.lang.String).

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