Partager via


UsbRequest.ClientData Property

Definition

Returns the client data for the request. -or- Sets the client data for the request.

public virtual Java.Lang.Object? ClientData { [Android.Runtime.Register("getClientData", "()Ljava/lang/Object;", "GetGetClientDataHandler")] get; [Android.Runtime.Register("setClientData", "(Ljava/lang/Object;)V", "GetSetClientData_Ljava_lang_Object_Handler")] set; }
[<get: Android.Runtime.Register("getClientData", "()Ljava/lang/Object;", "GetGetClientDataHandler")>]
[<set: Android.Runtime.Register("setClientData", "(Ljava/lang/Object;)V", "GetSetClientData_Ljava_lang_Object_Handler")>]
member this.ClientData : Java.Lang.Object with get, set

Property Value

the client data for the request

Attributes

Remarks

Property getter documentation:

Returns the client data for the request. This can be used in conjunction with #setClientData to associate another object with this request, which can be useful for maintaining state between calls to #queue and android.hardware.usb.UsbDeviceConnection#requestWait

Java documentation for android.hardware.usb.UsbRequest.getClientData().

Property setter documentation:

Sets the client data for the request. This can be used in conjunction with #getClientData to associate another object with this request, which can be useful for maintaining state between calls to #queue and android.hardware.usb.UsbDeviceConnection#requestWait

Java documentation for android.hardware.usb.UsbRequest.setClientData(java.lang.Object).

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