Created
September 9, 2014 04:01
-
-
Save wada811/d41253427134a014a388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class UiHandler extends Handler implements Runnable { | |
public UiHandler(){ | |
super(Looper.getMainLooper()); | |
} | |
public UiHandler(Handler.Callback callback){ | |
super(Looper.getMainLooper(), callback); | |
} | |
public boolean post(){ | |
return post(this); | |
} | |
public boolean postAtFrontOfQueue(){ | |
return postAtFrontOfQueue(this); | |
} | |
public boolean postAtTime(Object token, long uptimeMillis){ | |
return postAtTime(this, token, uptimeMillis); | |
} | |
public boolean postAtTime(long uptimeMillis){ | |
return postAtTime(this, uptimeMillis); | |
} | |
public boolean postDelayed(long delayMillis) | |
return postDelayed(this, delayMillis); | |
} | |
public abstract void run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment