summaryrefslogtreecommitdiffstats
path: root/api/16.txt
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-05-21 16:33:39 -0700
committerJeff Brown <jeffbrown@google.com>2012-05-21 18:15:29 -0700
commitcae804901eb5761e42d5bac7cdd6f15d37e3ceb3 (patch)
tree7fbba51e6c4bdd07b83f7ae9a8d081a6c348668d /api/16.txt
parent1b9ba578f1d2acf86c75110e89ae3d2e0434483a (diff)
downloadframeworks_base-cae804901eb5761e42d5bac7cdd6f15d37e3ceb3.zip
frameworks_base-cae804901eb5761e42d5bac7cdd6f15d37e3ceb3.tar.gz
frameworks_base-cae804901eb5761e42d5bac7cdd6f15d37e3ceb3.tar.bz2
Add public API to Choreographer.
The API allows applications to post FrameCallbacks that will run on vsync and that are provided with the frame time. Change-Id: Ieb39fcdd085ef8a57805b8f78e7a307f416ff21d
Diffstat (limited to 'api/16.txt')
-rw-r--r--api/16.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/api/16.txt b/api/16.txt
index 81efd34..0f5f3af 100644
--- a/api/16.txt
+++ b/api/16.txt
@@ -22737,6 +22737,17 @@ package android.view {
method public void onPrepareSubMenu(android.view.SubMenu);
}
+ public final class Choreographer {
+ method public static android.view.Choreographer getInstance();
+ method public void postFrameCallback(android.view.Choreographer.FrameCallback);
+ method public void postFrameCallbackDelayed(android.view.Choreographer.FrameCallback, long);
+ method public void removeFrameCallback(android.view.Choreographer.FrameCallback);
+ }
+
+ public static abstract interface Choreographer.FrameCallback {
+ method public abstract void doFrame(long);
+ }
+
public abstract interface CollapsibleActionView {
method public abstract void onActionViewCollapsed();
method public abstract void onActionViewExpanded();