PlaceholderSurface


@UnstableApi
class PlaceholderSurface : Surface, PlaceholderSurfaceInterface


A placeholder Surface.

Summary

Public functions

Surface!

Returns the placeholder Surface.

Boolean

Returns whether the placeholder surface is secure.

synchronized java-static Boolean

This function is deprecated.

Use isSecureSupported instead.

java-static PlaceholderSurface!
newInstance(context: Context!, secure: Boolean)

This function is deprecated.

Use newInstance instead.

java-static PlaceholderSurface!
newInstanceV17(context: Context!, secure: Boolean)

This function is deprecated.

Use newInstance instead.

Unit

Public properties

Boolean

Whether the surface is secure.

Inherited functions

From androidx.media3.exoplayer.video.PlaceholderSurfaceInterface
java-static PlaceholderSurfaceInterface!
newInstance(context: Context!, secure: Boolean)

Returns a newly created placeholder surface.

From android.view.Surface

Public functions

getSurface

fun getSurface(): Surface!

Returns the placeholder Surface.

isSecure

fun isSecure(): Boolean

Returns whether the placeholder surface is secure.

isSecureSupported

synchronized java-static fun isSecureSupported(context: Context!): Boolean

newInstance

java-static fun newInstance(context: Context!, secure: Boolean): PlaceholderSurface!

newInstanceV17

java-static fun newInstanceV17(context: Context!, secure: Boolean): PlaceholderSurface!

release

fun release(): Unit

Public properties

secure

val secure: Boolean

Whether the surface is secure.