Looper.QuitSafely Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Quits the looper safely.
[Android.Runtime.Register("quitSafely", "()V", "GetQuitSafelyHandler")]
public virtual void QuitSafely ();
[<Android.Runtime.Register("quitSafely", "()V", "GetQuitSafelyHandler")>]
abstract member QuitSafely : unit -> unit
override this.QuitSafely : unit -> unit
- Attributes
Remarks
Quits the looper safely.
Causes the #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.
Java documentation for android.os.Looper.quitSafely()
.
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.