Class

SpatialExternalSurfaceProtection

Specifies if the Surface should be backed by android.hardware.HardwareBuffers with the USAGEPROTECTEDCONTENT flag set.

Source set: Android
public class SpatialExternalSurfaceProtection private constructor(internal val value: SurfaceEntity.SurfaceProtection)

Specifies if the Surface should be backed by android.hardware.HardwareBuffers with the USAGEPROTECTEDCONTENT flag set. These buffers support hardware paths for decoding protected content.

See MediaDrm

Members

Companion

Source set: Android
public companion object

Properties

None

Source set: Android
public val None: SpatialExternalSurfaceProtection =
            SpatialExternalSurfaceProtection(SurfaceEntity.SurfaceProtection.NONE)

The Surface content is not protected. Non-protected content can be decoded into this surface. Protected content can not be decoded into this Surface. Screen captures of the SpatialExternalSurface will show the Surface content.

Protected

Source set: Android
public val Protected: SpatialExternalSurfaceProtection =
            SpatialExternalSurfaceProtection(SurfaceEntity.SurfaceProtection.PROTECTED)

The Surface content is protected. Non-protected content can be decoded into this surface. Protected content can be decoded into this Surface. Screen captures of the SpatialExternalSurface will redact the Surface content.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: