RestrictionsManager.GetManifestRestrictions(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.