Langue

Binder.AttachInterface(IInterface, String) Méthode

Définition

Méthode pratique pour associer une interface spécifique au 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

Paramètres

owner
IInterface

La valeur peut être null.

descriptor
String

La valeur peut être null.

Attributs

Remarques

Méthode pratique pour associer une interface spécifique au Binder. Après l’appel, #queryLocalInterface(String) queryLocalInterface() vous pouvez retourner le propriétaire donné IInterface lorsque le descripteur correspondant est demandé.

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à