Package pl.droidsonroids.gif
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 voidonDrawPlaceholder(Canvas canvas)Called when surface is ready and placeholder has to be drawn.
-
Method Details
-
onDrawPlaceholder
Called when surface is ready and placeholder has to be drawn. It may occur more than once (eg. ifViewvisibility is toggled before input source is loaded) or never (eg. whenViewis never visible).
Note that it is an error to usecanvasafter this method return.- Parameters:
canvas- canvas to draw into
-