Language

ProviderInfo.UriPermissionPatterns Property

Definition

If non-null, these are the patterns that are allowed for granting URI permissions.

[Android.Runtime.Register("uriPermissionPatterns")]
public System.Collections.Generic.IList<Android.OS.PatternMatcher>? UriPermissionPatterns { get; set; }
[<Android.Runtime.Register("uriPermissionPatterns")>]
member this.UriPermissionPatterns : System.Collections.Generic.IList<Android.OS.PatternMatcher> with get, set

Property Value

The patterns that limit which URIs can receive permission grants, or null when no patterns are recorded or when they were not requested with the GET_URI_PERMISSION_PATTERNS flag.

Attributes

Remarks

If non-null, these are the patterns that are allowed for granting URI permissions. Any URI that does not match one of these patterns cannot be granted. When no patterns are recorded, this list does not restrict the URIs. The PackageManager#GET_URI_PERMISSION_PATTERNS PackageManager.GET_URI_PERMISSION_PATTERNS flag must be specified for this field to be filled in. Without that flag, a null value does not indicate whether restrictions exist.

Java documentation for android.content.pm.ProviderInfo.uriPermissionPatterns.

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