次の方法で共有


PackageItemInfo.LoadXmlMetaData(PackageManager, String) Method

Definition

Load an XML resource attached to the meta-data of this item.

[Android.Runtime.Register("loadXmlMetaData", "(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/res/XmlResourceParser;", "GetLoadXmlMetaData_Landroid_content_pm_PackageManager_Ljava_lang_String_Handler")]
public virtual System.Xml.XmlReader? LoadXmlMetaData (Android.Content.PM.PackageManager? pm, string? name);
[<Android.Runtime.Register("loadXmlMetaData", "(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/res/XmlResourceParser;", "GetLoadXmlMetaData_Landroid_content_pm_PackageManager_Ljava_lang_String_Handler")>]
abstract member LoadXmlMetaData : Android.Content.PM.PackageManager * string -> System.Xml.XmlReader
override this.LoadXmlMetaData : Android.Content.PM.PackageManager * string -> System.Xml.XmlReader

Parameters

pm
PackageManager

A PackageManager from which the XML can be loaded; usually the PackageManager from which you originally retrieved this item.

name
String

Name of the meta-date you would like to load.

Returns

Returns an XmlPullParser you can use to parse the XML file assigned as the given meta-data. If the meta-data name is not defined or the XML resource could not be found, null is returned.

Attributes

Remarks

Load an XML resource attached to the meta-data of this item. This will retrieved the name meta-data entry, and if defined call back on the given PackageManager to load its XML file from the application.

Java documentation for android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String).

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