Compartilhar via


ApplicationMediaCapabilities.CreateFromXml(XmlReader) Method

Definition

Creates ApplicationMediaCapabilities from an xml.

[Android.Runtime.Register("createFromXml", "(Lorg/xmlpull/v1/XmlPullParser;)Landroid/media/ApplicationMediaCapabilities;", "", ApiSince=31)]
public static Android.Media.ApplicationMediaCapabilities CreateFromXml (System.Xml.XmlReader xmlParser);
[<Android.Runtime.Register("createFromXml", "(Lorg/xmlpull/v1/XmlPullParser;)Landroid/media/ApplicationMediaCapabilities;", "", ApiSince=31)>]
static member CreateFromXml : System.Xml.XmlReader -> Android.Media.ApplicationMediaCapabilities

Parameters

xmlParser
XmlReader

The underlying XmlPullParser that will read the xml.

Returns

An ApplicationMediaCapabilities object.

Attributes

Remarks

Creates ApplicationMediaCapabilities from an xml.

The xml's syntax is the same as the media_capabilities.xml used by the AndroidManifest.xml.

Here is an example:

{@code
<media-capabilities xmlns:android="http://schemas.android.com/apk/res/android">
<format android:name="HEVC" supported="true"/>
<format android:name="HDR10" supported="false"/>
<format android:name="HDR10Plus" supported="false"/>
</media-capabilities>
            }

Java documentation for android.media.ApplicationMediaCapabilities.createFromXml(org.xmlpull.v1.XmlPullParser).

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