Share via


TestLooperManager.Poll Method

Definition

Retrieves and removes the next message in this queue.

[Android.Runtime.Register("poll", "()Landroid/os/Message;", "GetPollHandler", ApiSince=36)]
public virtual Android.OS.Message? Poll();
[<Android.Runtime.Register("poll", "()Landroid/os/Message;", "GetPollHandler", ApiSince=36)>]
abstract member Poll : unit -> Android.OS.Message
override this.Poll : unit -> Android.OS.Message

Returns

Attributes

Remarks

Retrieves and removes the next message in this queue. If the queue is empty, returns null. This method never blocks.

Callers should always call #recycle(Message) on the message when all interactions with it have completed.

Java documentation for android.os.TestLooperManager.poll().

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