Share via


HardwareRenderer.Stop Method

Definition

Hard stops rendering into the surface.

[Android.Runtime.Register("stop", "()V", "GetStopHandler", ApiSince=29)]
public virtual void Stop ();
[<Android.Runtime.Register("stop", "()V", "GetStopHandler", ApiSince=29)>]
abstract member Stop : unit -> unit
override this.Stop : unit -> unit
Attributes

Remarks

Hard stops rendering into the surface. If the renderer is stopped it will block any attempt to render. Calls to FrameRenderRequest#syncAndDraw() will still sync over the latest rendering content, however they will not render and instead #SYNC_CONTEXT_IS_STOPPED will be returned.

This is useful in combination with lifecycle events such as Activity#onStop(). See #start() for resuming rendering.

Java documentation for android.graphics.HardwareRenderer.stop().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to