Interface GifTextureView.PlaceholderDrawListener

Enclosing class:
GifTextureView

public static 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
    void onDrawPlaceholder​(Canvas canvas)
    Called when surface is ready and placeholder has to be drawn.
  • Method Details

    • onDrawPlaceholder

      void onDrawPlaceholder​(Canvas canvas)
      Called when surface is ready and placeholder has to be drawn. It may occur more than once (eg. if View visibility is toggled before input source is loaded) or never (eg. when View is never visible).
      Note that it is an error to use canvas after this method return.
      Parameters:
      canvas - canvas to draw into