ActivityResultContracts.PickVisualMedia.MediaCapabilities


class ActivityResultContracts.PickVisualMedia.MediaCapabilities


Represents the media capabilities of an application.

This class allows you to specify the media capabilities that your application can handle, such as the HDR type of the media. By providing this information to PickVisualMediaRequest, the photo picker can provide a more appropriate media format when possible.

Summary

Nested types

A builder for constructing MediaCapabilities instances.

Constants

const Int

HDR type for Dolby-Vision.

const Int

HDR type for HDR10.

const Int

HDR type for HDR10+.

const Int

HDR type for HLG10.

Public properties

Set<Int>

Constants

TYPE_DOLBY_VISION

const val TYPE_DOLBY_VISION = 3: Int

HDR type for Dolby-Vision.

TYPE_HDR10

const val TYPE_HDR10 = 1: Int

HDR type for HDR10.

TYPE_HDR10_PLUS

const val TYPE_HDR10_PLUS = 2: Int

HDR type for HDR10+.

TYPE_HLG10

const val TYPE_HLG10 = 0: Int

HDR type for HLG10.

Public properties

supportedHdrTypes

val supportedHdrTypesSet<Int>