Android Guides | Samples

Android.Content.UriPermission Class

Description of a single Uri permission grant.

See Also: UriPermission

Syntax

[Android.Runtime.Register("android/content/UriPermission", DoNotGenerateAcw=true)]
public sealed class UriPermission : Object, IParcelable, IDisposable

Remarks

Description of a single Uri permission grant. This grants may have been created via ActivityFlags.GrantReadUriPermission, etc when sending an Intent, or explicitly through Context.GrantUriPermission(String,Uri,Uri).

See Also

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Content.UriPermission are listed below.

See Also: Object

Public Fields

const
InvalidTimeInt64 (-9223372036854775808). Value returned when a permission has not been persisted.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
IsReadPermissionBoolean. Returns if this permission offers read access.
[read-only]
IsWritePermissionBoolean. Returns if this permission offers write access.
[read-only]
PersistedTimeInt64. Return the time when this permission was first persisted, in milliseconds since January 1, 1970 00:00:00.
[read-only]
UriUri. Return the Uri this permission pertains to.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.