UriPermission
class UriPermission : Parcelable
| kotlin.Any | |
| ↳ | android.content.UriPermission | 
Description of a single Uri permission grant. This grants may have been created via Intent.FLAG_GRANT_READ_URI_PERMISSION, etc when sending an Intent, or explicitly through Context.grantUriPermission(String, android.net.Uri, int).
Summary
| Constants | |
|---|---|
| static Long | Value returned when a permission has not been persisted. | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Long | Return the time when this permission was first persisted, in milliseconds since January 1, 1970 00:00:00. | 
| Uri! | getUri()Return the Uri this permission pertains to. | 
| Boolean | Returns if this permission offers read access. | 
| Boolean | Returns if this permission offers write access. | 
| String | toString() | 
| Unit | writeToParcel(dest: Parcel, flags: Int) | 
| Properties | |
|---|---|
| static Parcelable.Creator<UriPermission!> | |
Constants
INVALID_TIME
static val INVALID_TIME: Long
Value returned when a permission has not been persisted.
Value: -9223372036854775808LPublic methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getPersistedTime
fun getPersistedTime(): Long
Return the time when this permission was first persisted, in milliseconds since January 1, 1970 00:00:00.0 UTC. Returns INVALID_TIME if not persisted.
isReadPermission
fun isReadPermission(): Boolean
Returns if this permission offers read access.
isWritePermission
fun isWritePermission(): Boolean
Returns if this permission offers write access.
toString
fun toString(): String
| Return | |
|---|---|
| String | a string representation of the object. | 
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
| Parameters | |
|---|---|
| dest | Parcel: The Parcel in which the object should be written. This value cannot be null. | 
| flags | Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
