Android.OS.HandlerThread.Quit Method
Quits the handler thread's looper.

Syntax

[Android.Runtime.Register("quit", "()Z", "GetQuitHandler")]
public virtual bool Quit ()

See Also

HandlerThread.QuitSafely

Returns

Documentation for this section has not yet been entered.

Remarks

Quits the handler thread's looper.

Causes the handler thread's looper to terminate without processing any more messages in the message queue.

Any attempt to post messages to the queue after the looper is asked to quit will fail. For example, the Handler.SendMessage(Message) method will return false.

Using this method may be unsafe because some messages may not be delivered before the looper terminates. Consider using HandlerThread.QuitSafely instead to ensure that all pending work is completed in an orderly manner.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5