AppFunctionSearchSpec


public final class AppFunctionSearchSpec


Defines the specifications for filtering and searching app function snapshots.

A search will be performed using a logical AND operation across all provided criteria.

Summary

Public constructors

AppFunctionSearchSpec(
    Set<@NonNull String> packageNames,
    String schemaCategory,
    String schemaName,
    int minSchemaVersion,
    Set<@NonNull AppFunctionName> functionNames
)

Creates a new instance of AppFunctionSearchSpec.

Public methods

final Set<@NonNull AppFunctionName>

The set of AppFunctionName to filter by, or null if this filter is skipped.

final int

The minimum schema version to filter by, or 0 if this filter is skipped.

final Set<@NonNull String>

The set of package names to filter by, or null if this filter is skipped.

final String

The schema category to filter by, or null if this filter is skipped.

final String

The schema name to filter by, or null if this filter is skipped.

Public constructors

AppFunctionSearchSpec

Added in 1.0.0-alpha10
public AppFunctionSearchSpec(
    Set<@NonNull String> packageNames,
    String schemaCategory,
    String schemaName,
    int minSchemaVersion,
    Set<@NonNull AppFunctionName> functionNames
)

Creates a new instance of AppFunctionSearchSpec.

Public methods

getFunctionNames

Added in 1.0.0-alpha10
public final Set<@NonNull AppFunctionNamegetFunctionNames()

The set of AppFunctionName to filter by, or null if this filter is skipped.

getMinSchemaVersion

Added in 1.0.0-alpha10
public final int getMinSchemaVersion()

The minimum schema version to filter by, or 0 if this filter is skipped.

getPackageNames

Added in 1.0.0-alpha10
public final Set<@NonNull StringgetPackageNames()

The set of package names to filter by, or null if this filter is skipped.

The calling app can only search metadata for functions in packages that it is allowed to query via android.content.pm.PackageManager.canPackageQuery. If a package is not queryable by the calling app, its functions' metadata will not be visible.

getSchemaCategory

Added in 1.0.0-alpha10
public final String getSchemaCategory()

The schema category to filter by, or null if this filter is skipped.

getSchemaName

Added in 1.0.0-alpha10
public final String getSchemaName()

The schema name to filter by, or null if this filter is skipped.