AppFunctionSearchSpec


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(
    packageNames: Set<String>?,
    schemaCategory: String?,
    schemaName: String?,
    minSchemaVersion: Int,
    functionNames: Set<AppFunctionName>?
)

Creates a new instance of AppFunctionSearchSpec.

Public properties

Set<AppFunctionName>?

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

Int

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

Set<String>?

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

String?

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

String?

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

Public constructors

AppFunctionSearchSpec

Added in 1.0.0-alpha10
AppFunctionSearchSpec(
    packageNames: Set<String>? = null,
    schemaCategory: String? = null,
    schemaName: String? = null,
    minSchemaVersion: Int = 0,
    functionNames: Set<AppFunctionName>? = null
)

Creates a new instance of AppFunctionSearchSpec.

Public properties

functionNames

Added in 1.0.0-alpha10
val functionNamesSet<AppFunctionName>?

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

minSchemaVersion

Added in 1.0.0-alpha10
val minSchemaVersionInt

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

packageNames

Added in 1.0.0-alpha10
val packageNamesSet<String>?

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.

schemaCategory

Added in 1.0.0-alpha10
val schemaCategoryString?

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

schemaName

Added in 1.0.0-alpha10
val schemaNameString?

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