UriPermission class
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)
.
Constructors
- UriPermission({required bool isReadPermission, required bool isWritePermission, required int persistedTime, required Uri uri, required bool isTreeDocumentFile})
-
Even we allow create instances of this class avoid it and use
persistedUriPermissions
API insteadconst -
UriPermission.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isReadPermission → bool
-
Whether an UriPermission is created with
FLAG_GRANT_READ_URI_PERMISSION
final - isTreeDocumentFile → bool
-
Whether or not a tree document file.
final
- isWritePermission → bool
-
Whether an UriPermission is created with
FLAG_GRANT_WRITE_URI_PERMISSION
final - persistedTime → int
-
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.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
Return the Uri this permission pertains to.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override