SchemaVisibilityConfig

public final classSchemaVisibilityConfigextendsObject
implementsParcelable

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.

Nested Class Summary

class SchemaVisibilityConfig.Builder The builder class ofSchemaVisibilityConfig.

Inherited Constant Summary

Field Summary

public static finalCreator<SchemaVisibilityConfig> CREATOR

Public Method Summary

boolean
List<PackageIdentifier>
getAllowedPackages()
Returns a list ofPackageIdentifiers of packages that can access this schema.
PackageIdentifier
getPubliclyVisibleTargetPackage()
Returns thePackageIdentifier of the package that will be used as the target package in a call to PackageManager.canPackageQuery(String, String)to determine which packages can access this publicly visible schema.
Set<Set<Integer>>
getRequiredPermissions()
Returns an array of Integers representing Android Permissions that the caller must hold to access the schema this SchemaVisibilityConfigrepresents.
int
void
writeToParcel(Parceldest, int flags)

Inherited Method Summary

Fields

public static finalCreator<SchemaVisibilityConfig> CREATOR

Public Methods

public booleanequals(Objecto)

publicList<PackageIdentifier> getAllowedPackages()

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

publicPackageIdentifier getPubliclyVisibleTargetPackage()

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

publicSet<Set<Integer>> getRequiredPermissions()

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

public inthashCode()

public voidwriteToParcel(Parceldest, int flags)