Class PlaceholderSurface

  • All Implemented Interfaces:
    Parcelable

    @RequiresApi(17)
    @Deprecated
    public final class PlaceholderSurface
    extends Surface
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    A placeholder Surface.
    • Field Detail

      • secure

        public final boolean secure
        Deprecated.
        Whether the surface is secure.
    • Method Detail

      • isSecureSupported

        public static boolean isSecureSupported​(Context context)
        Deprecated.
        Returns whether the device supports secure placeholder surfaces.
        Parameters:
        context - Any Context.
        Returns:
        Whether the device supports secure placeholder surfaces.
      • release

        public void release()
        Deprecated.
        Overrides:
        release in class Surface