Added in API level 4

PathPermission


open class PathPermission : PatternMatcher

Description of permissions needed to access a particular path in a ProviderInfo.

Summary

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Int PATTERN_ADVANCED_GLOB

Pattern type: the given pattern is interpreted with a regular expression-like syntax for matching against the string it is tested against. Supported tokens include dot (.) and sets ([...]) with full support for character ranges and the not (^) modifier. Supported modifiers include star (*) for zero-or-more, plus (+) for one-or-more and full range ({...}) support. This is a simple evaluation implementation in which matching is done against the pattern in real time with no backtracking support.

Int PATTERN_LITERAL

Pattern type: the given pattern must exactly match the string it is tested against.

Int PATTERN_PREFIX

Pattern type: the given pattern must match the beginning of the string it is tested against.

Int PATTERN_SIMPLE_GLOB

Pattern type: the given pattern is interpreted with a simple glob syntax for matching against the string it is tested against. In this syntax, you can use the '*' character to match against zero or more occurrences of the character immediately before. If the character before it is '.' it will match any character. The character '\' can be used as an escape. This essentially provides only the '*' wildcard part of a normal regexp.

Int PATTERN_SUFFIX

Pattern type: the given pattern must match the end of the string it is tested against.

Public constructors

PathPermission(pattern: String!, type: Int, readPermission: String!, writePermission: String!)

Public methods
open String!

open String!

open Unit
writeToParcel(dest: Parcel, flags: Int)

Inherited functions

Public constructors

PathPermission

Added in API level 4
PathPermission(src: Parcel!)

PathPermission

Added in API level 4
PathPermission(
    pattern: String!,
    type: Int,
    readPermission: String!,
    writePermission: String!)

Public methods

getReadPermission

Added in API level 4
open fun getReadPermission(): String!

getWritePermission

Added in API level 4
open fun getWritePermission(): String!

writeToParcel

Added in API level 4
open 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 either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 4
static val CREATOR: Parcelable.Creator<PathPermission!>