MediaStore.ExtraMediaCapabilities Field

Definition

Specify the ApplicationMediaCapabilities that should be used while opening a media or picking media files.

[Android.Runtime.Register("EXTRA_MEDIA_CAPABILITIES", ApiSince=31)]
public const string ExtraMediaCapabilities;
[<Android.Runtime.Register("EXTRA_MEDIA_CAPABILITIES", ApiSince=31)>]
val mutable ExtraMediaCapabilities : string

Field Value

Attributes

Remarks

Specify the ApplicationMediaCapabilities that should be used while opening a media or picking media files.

If the capabilities specified matches the format of the original file, the app will receive the original file, otherwise, it will get transcoded to a default supported format.

When used while opening a media, add this option to the optsBundle in various ContentResolveropen methods. This flag takes higher precedence over the applications declared media_capabilities.xml and is useful for apps that want to have more granular control over their supported media capabilities.

When used while picking media files, add this option to the intent-extra of MediaStore#ACTION_PICK_IMAGES.

Java documentation for android.provider.MediaStore.EXTRA_MEDIA_CAPABILITIES.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to