PlaceholderSurface


@UnstableApi
public final class PlaceholderSurface extends Surface implements PlaceholderSurfaceInterface


A placeholder Surface.

Summary

Public fields

final boolean

Whether the surface is secure.

Public methods

Surface

Returns the placeholder Surface.

boolean

Returns whether the placeholder surface is secure.

synchronized static boolean

This method is deprecated.

Use isSecureSupported instead.

static PlaceholderSurface
newInstance(Context context, boolean secure)

This method is deprecated.

Use newInstance instead.

static PlaceholderSurface
newInstanceV17(Context context, boolean secure)

This method is deprecated.

Use newInstance instead.

void

Inherited Constants

From android.os.Parcelable
static final int
static final int
From android.view.Surface
static final int
static final int
static final Parcelable.Creator<Surface>
static final int
static final int
static final int
static final int
static final int
static final int
static final int

Inherited methods

From androidx.media3.exoplayer.video.PlaceholderSurfaceInterface
static PlaceholderSurfaceInterface
newInstance(Context context, boolean secure)

Returns a newly created placeholder surface.

From android.view.Surface
void
int
void
boolean
boolean
Canvas
lockCanvas(Rect inOutDirty)
Canvas
void
void
setFrameRate(float frameRate, int compatibility)
void
String
void

This method is deprecated.

void
void
writeToParcel(Parcel dest, int flags)

Public fields

secure

public final boolean secure

Whether the surface is secure.

Public methods

getSurface

public Surface getSurface()

Returns the placeholder Surface.

isSecure

public boolean isSecure()

Returns whether the placeholder surface is secure.

isSecureSupported

synchronized public static boolean isSecureSupported(Context context)

newInstance

public static PlaceholderSurface newInstance(Context context, boolean secure)

newInstanceV17

public static PlaceholderSurface newInstanceV17(Context context, boolean secure)

release

public void release()