java.lang.Object | |
↳ | android.content.UriPermission |
Description of a single Uri permission grant. This grants may have been
created via
FLAG_GRANT_READ_URI_PERMISSION
, etc when sending
an
Intent
, or explicitly through
grantUriPermission(String, android.net.Uri, int)
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | INVALID_TIME | Value returned when a permission has not been persisted. |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
||||||||||
|
Return the time when this permission was first persisted, in milliseconds
since January 1, 1970 00:00:00.0 UTC.
|
||||||||||
|
Return the Uri this permission pertains to.
|
||||||||||
|
Returns if this permission offers read access.
|
||||||||||
|
Returns if this permission offers write access.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this
object.
|
||||||||||
|
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.os.Parcelable
|
Value returned when a permission has not been persisted.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
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.
Returns if this permission offers read access.
Returns if this permission offers write access.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See
Writing a useful
toString
method
if you intend implementing your own
toString
method.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags |
Additional flags about how the object should be written.
May be 0 or
PARCELABLE_WRITE_RETURN_VALUE
.
|