PlaceholderSurface
@UnstableApi
class PlaceholderSurface : Surface
A placeholder Surface.
Summary
Public functions |
|
|---|---|
synchronized java-static Boolean |
isSecureSupported(context: Context!)Returns whether the device supports secure placeholder surfaces. |
java-static PlaceholderSurface! |
newInstance(context: Context!, secure: Boolean)Returns a newly created placeholder surface. |
java-static PlaceholderSurface! |
@InlineMe(replacement = "PlaceholderSurface.newInstance(context, secure)", imports = "androidx.media3.exoplayer.video.PlaceholderSurface")This function is deprecated. Use |
Unit |
release() |
Inherited Constants |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public functions
isSecureSupported
synchronized java-static fun isSecureSupported(context: Context!): Boolean
Returns whether the device supports secure placeholder surfaces.
| Returns | |
|---|---|
Boolean |
Whether the device supports secure placeholder surfaces. |
newInstance
java-static fun newInstance(context: Context!, secure: Boolean): PlaceholderSurface!
Returns a newly created placeholder surface. The surface must be released by calling release when it's no longer required.
| Parameters | |
|---|---|
context: Context! |
Any |
secure: Boolean |
Whether a secure surface is required. Must only be requested if |
| Throws | |
|---|---|
java.lang.IllegalStateException |
If a secure surface is requested on a device for which |
newInstanceV17
@InlineMe(replacement = "PlaceholderSurface.newInstance(context, secure)", imports = "androidx.media3.exoplayer.video.PlaceholderSurface")
java-static funnewInstanceV17(context: Context!, secure: Boolean): PlaceholderSurface!