Package 

Interface GifTextureView.PlaceholderDrawListener


  • 
    public interface GifTextureView.PlaceholderDrawListener
    
                        

    This listener can be used to be notified when the GifTextureView content placeholder can be drawn.Placeholder is displayed before proper input source is loaded and remains visible when input source loading fails.

    • Method Summary

      Modifier and Type Method Description
      abstract void onDrawPlaceholder(Canvas canvas) Called when surface is ready and placeholder has to be drawn.It may occur more than once (eg.
      • Methods inherited from class java.lang.Object

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

      • onDrawPlaceholder

         abstract void onDrawPlaceholder(Canvas canvas)

        Called when surface is ready and placeholder has to be drawn.It may occur more than once (eg. if {@code View} visibility is toggled before input source is loaded)or never (eg. when {@code View} is never visible).Note that it is an error to use {@code canvas} after this method return.

        Parameters:
        canvas - canvas to draw into