Android.OS.Looper.QuitSafely Method
Quits the looper safely.

Syntax

[Android.Runtime.Register("quitSafely", "()V", "GetQuitSafelyHandler")]
public virtual void QuitSafely ()

Remarks

Quits the looper safely.

Causes the Looper.Loop method to terminate as soon as all remaining messages in the message queue that are already due to be delivered have been handled. However pending delayed messages with due times in the future will not be delivered before the loop terminates.

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.

[Android Documentation]

Requirements

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