DirectRenderingCallback

Added in API level XE12
public interface

DirectRenderingCallback

Additional callbacks that can be received for SurfaceHolder.Callback.

For more information on how to use this interface, see the Creating high-frequency live cards developer guide.

Public Methods
abstract void
renderingPaused(SurfaceHolder holder, boolean paused)
Inherited Methods

Public Methods

Added in API level XE12

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.

Parameters
paused true if rendering should be paused; otherwise it should be resumed