SchemaVisibilityConfig


class SchemaVisibilityConfig


A class to hold a all necessary Visibility information corresponding to the same schema. This pattern allows for easier association of these documents.

This does not correspond to any schema, the properties held in this class are kept in two separate schemas, VisibilityConfig and PublicAclOverlay.

Summary

Nested types

The builder class of SchemaVisibilityConfig.

Public functions

Boolean
equals(o: Any?)
(Mutable)List<PackageIdentifier!>

Returns a list of PackageIdentifiers of packages that can access this schema.

PackageIdentifier?

Returns the PackageIdentifier of the package that will be used as the target package in a call to canPackageQuery to determine which packages can access this publicly visible schema.

(Mutable)Set<(Mutable)Set<Int!>!>

Returns an array of Integers representing Android Permissions that the caller must hold to access the schema this SchemaVisibilityConfig represents.

Int

Public functions

equals

fun equals(o: Any?): Boolean

getAllowedPackages

Added in 1.1.0-alpha07
fun getAllowedPackages(): (Mutable)List<PackageIdentifier!>

Returns a list of PackageIdentifiers of packages that can access this schema.

getPubliclyVisibleTargetPackage

Added in 1.1.0-alpha07
fun getPubliclyVisibleTargetPackage(): PackageIdentifier?

Returns the PackageIdentifier of the package that will be used as the target package in a call to canPackageQuery to determine which packages can access this publicly visible schema. Returns null if the schema is not publicly visible.

getRequiredPermissions

Added in 1.1.0-alpha07
fun getRequiredPermissions(): (Mutable)Set<(Mutable)Set<Int!>!>

Returns an array of Integers representing Android Permissions that the caller must hold to access the schema this SchemaVisibilityConfig represents.

hashCode

fun hashCode(): Int