Companion

object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun fromOrdinal(ordinal: Int): ShareMode?

Decodes the ordinal a mode is flattened to for AIDL transport, or null when it names no mode this build knows.

Link copied to clipboard

Picks the most permissive of a collection of ShareModes (Write > Append > Read), or null if empty. Used to fold the several implied acl:modes a grant writes (e.g. Read+Append for "Add") back into the single logical level shown per receiver.

fun strongest(predicates: Set<String>): ShareMode?

Picks the most permissive mode from a set of WAC predicates. Write > Append > Read.