Beispiel #1
0
 public void postFrameCallbackDelayed(FrameCallback callbackWrapper, long delayMillis)
 {
     if (IS_JELLYBEAN_OR_HIGHER)
     {
         choreographerPostFrameCallbackDelayed(callbackWrapper.getFrameCallback(), delayMillis);
     }
     else
     {
         mHandler.PostDelayed(callbackWrapper.getRunnable(), delayMillis + ONE_FRAME_MILLIS);
     }
 }
Beispiel #2
0
 public void removeFrameCallback(FrameCallback callbackWrapper)
 {
     if (IS_JELLYBEAN_OR_HIGHER)
     {
         choreographerRemoveFrameCallback(callbackWrapper.getFrameCallback());
     }
     else
     {
         mHandler.RemoveCallbacks(callbackWrapper.getRunnable());
     }
 }
Beispiel #3
0
 public void PostFrameCallback(FrameCallback callbackWrapper)
 {
     if (IS_JELLYBEAN_OR_HIGHER)
     {
         choreographerPostFrameCallback(callbackWrapper.getFrameCallback());
     }
     else
     {
         mHandler.PostDelayed(callbackWrapper.getRunnable(), 0);
     }
 }