Package 

Interface UiHelper.RendererCallback


  • 
    public interface UiHelper.RendererCallback
    
                        

    Interface used to know when the native surface is created, destroyed or resized.

    • Method Summary

      Modifier and Type Method Description
      abstract void onNativeWindowChanged(Surface surface) Called when the underlying native window has changed.
      abstract void onDetachedFromSurface() Called when the surface is going away.
      abstract void onResized(int width, int height) Called when the underlying native window has been resized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onDetachedFromSurface

         abstract void onDetachedFromSurface()

        Called when the surface is going away. After this call isReadyToRender()returns false. You MUST have stopped drawing when returning.This is called from detach() or if the surface disappears on its own.

      • onResized

         abstract void onResized(int width, int height)

        Called when the underlying native window has been resized.