共用方式為


PackageInfo.RequestedPermissions Property

Definition

Array of all android.R.styleable#AndroidManifestUsesPermission <uses-permission> tags included under <manifest>, or null if there were none.

[Android.Runtime.Register("requestedPermissions")]
public System.Collections.Generic.IList<string>? RequestedPermissions { get; set; }
[<Android.Runtime.Register("requestedPermissions")>]
member this.RequestedPermissions : System.Collections.Generic.IList<string> with get, set

Property Value

Attributes

Remarks

Array of all android.R.styleable#AndroidManifestUsesPermission &lt;uses-permission&gt; tags included under &lt;manifest&gt;, or null if there were none. This is only filled in if the flag PackageManager#GET_PERMISSIONS was set. This list includes all permissions requested, even those that were not granted or known by the system at install time.

Java documentation for android.content.pm.PackageInfo.requestedPermissions.

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