Share via


SurfaceView.SetSurfaceLifecycle(SurfaceViewLifecycle) Method

Definition

Controls the lifecycle of the Surface owned by this SurfaceView.

[Android.Runtime.Register("setSurfaceLifecycle", "(I)V", "GetSetSurfaceLifecycle_IHandler", ApiSince=34)]
public virtual void SetSurfaceLifecycle (Android.Views.SurfaceViewLifecycle lifecycleStrategy);
[<Android.Runtime.Register("setSurfaceLifecycle", "(I)V", "GetSetSurfaceLifecycle_IHandler", ApiSince=34)>]
abstract member SetSurfaceLifecycle : Android.Views.SurfaceViewLifecycle -> unit
override this.SetSurfaceLifecycle : Android.Views.SurfaceViewLifecycle -> unit

Parameters

lifecycleStrategy
SurfaceViewLifecycle

The strategy for the lifecycle of the Surface owned by this SurfaceView.

Attributes

Remarks

Controls the lifecycle of the Surface owned by this SurfaceView.

By default, the lifecycycle strategy employed by the SurfaceView is #SURFACE_LIFECYCLE_DEFAULT.

Java documentation for android.view.SurfaceView.setSurfaceLifecycle(int).

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