Udostępnij za pośrednictwem


RestrictionsManager.GetManifestRestrictions(String) Method

Definition

Parse and return the list of restrictions defined in the manifest for the specified package, if any.

[Android.Runtime.Register("getManifestRestrictions", "(Ljava/lang/String;)Ljava/util/List;", "GetGetManifestRestrictions_Ljava_lang_String_Handler")]
public virtual System.Collections.Generic.IList<Android.Content.RestrictionEntry>? GetManifestRestrictions (string? packageName);
[<Android.Runtime.Register("getManifestRestrictions", "(Ljava/lang/String;)Ljava/util/List;", "GetGetManifestRestrictions_Ljava_lang_String_Handler")>]
abstract member GetManifestRestrictions : string -> System.Collections.Generic.IList<Android.Content.RestrictionEntry>
override this.GetManifestRestrictions : string -> System.Collections.Generic.IList<Android.Content.RestrictionEntry>

Parameters

packageName
String

The application for which to fetch the restrictions list.

Returns

The list of RestrictionEntry objects created from the XML file specified in the manifest, or null if none was specified.

Attributes

Remarks

Parse and return the list of restrictions defined in the manifest for the specified package, if any.

Java documentation for android.content.RestrictionsManager.getManifestRestrictions(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