Udostępnij za pośrednictwem


SurfaceView.SurfaceLifecycleFollowsVisibility 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 visibility.

[Android.Runtime.Register("SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY", 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 SurfaceLifecycleFollowsVisibility = 1;
[<Android.Runtime.Register("SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY", 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 SurfaceLifecycleFollowsVisibility : Android.Views.SurfaceViewLifecycle

Field Value

Value = 1
Attributes

Remarks

The Surface lifecycle is tied to SurfaceView visibility.

The Surface is created when the SurfaceView becomes visible, and is destroyed when the SurfaceView is no longer visible.

Java documentation for android.view.SurfaceView.SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY.

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