Example usage for android.os Handler removeCallbacksAndMessages

List of usage examples for android.os Handler removeCallbacksAndMessages

Introduction

In this page you can find the example usage for android.os Handler removeCallbacksAndMessages.

Prototype

public final void removeCallbacksAndMessages(Object token) 

Source Link

Document

Remove any pending posts of callbacks and sent messages whose obj is token.

Usage

From source file:io.realm.Realm.java

private void removeHandler(Handler handler) {
    handler.removeCallbacksAndMessages(null);
    handlers.remove(handler);
}