Additional callbacks that can be received for
For more information on how to use this interface, see the Creating high-frequency live cards developer guide.
public abstract void renderingPaused (SurfaceHolder holder, boolean paused)
Called when you should pause or resume rendering of the live card.
This method is typically called when users scroll to and away from your live card.
You should pause or resume rendering in this method depending on the
paused argument to save resources.
Note that the paused state is only applicable while the surface remains valid. In other words, if the rendering is paused when the surface is destroyed, the creation of a new surface implicitly resumes the rendering.