MtpDevice.ReadEvent(CancellationSignal) Method

Definition

Reads an event from the device.

[Android.Runtime.Register("readEvent", "(Landroid/os/CancellationSignal;)Landroid/mtp/MtpEvent;", "", ApiSince=24)]
public Android.Mtp.MtpEvent ReadEvent (Android.OS.CancellationSignal? signal);
[<Android.Runtime.Register("readEvent", "(Landroid/os/CancellationSignal;)Landroid/mtp/MtpEvent;", "", ApiSince=24)>]
member this.ReadEvent : Android.OS.CancellationSignal -> Android.Mtp.MtpEvent

Parameters

signal
CancellationSignal

signal for cancellation

Returns

obtained event

Attributes

Remarks

Reads an event from the device. It blocks the current thread until it gets an event. It throws OperationCanceledException if it is cancelled by signal.

Java documentation for android.mtp.MtpDevice.readEvent(android.os.CancellationSignal).

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