SurfaceView.SurfaceLifecycleFollowsAttachment Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.SurfaceViewLifecycle enum directly instead of this field.

The Surface lifecycle is tied to SurfaceView attachment.

[Android.Runtime.Register("SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.SurfaceViewLifecycle enum directly instead of this field.", true)]
public const Android.Views.SurfaceViewLifecycle SurfaceLifecycleFollowsAttachment = 2;
[<Android.Runtime.Register("SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.SurfaceViewLifecycle enum directly instead of this field.", true)>]
val mutable SurfaceLifecycleFollowsAttachment : Android.Views.SurfaceViewLifecycle

Field Value

Value = 2
Attributes

Remarks

The Surface lifecycle is tied to SurfaceView attachment. The Surface is created when the SurfaceView first becomes attached, but is not destroyed until this SurfaceView has been detached from the current window.

Java documentation for android.view.SurfaceView.SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT.

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