AppFunctionSearchSpec


class AppFunctionSearchSpec


Defines the specifications for filtering and searching app function snapshots.

Summary

Public constructors

AppFunctionSearchSpec(
    packageNames: Set<String>?,
    schemaCategory: String?,
    schemaName: String?,
    minSchemaVersion: Int
)

Creates a new instance of AppFunctionSearchSpec.

Public properties

Int

The minimum version of the function's schema.

Set<String>?

A set of package names to filter functions by.

String?

The category of the function's schema.

String?

The name of the function's schema.

Public constructors

AppFunctionSearchSpec

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

Creates a new instance of AppFunctionSearchSpec.

Public properties

minSchemaVersion

Added in 1.0.0-alpha01
val minSchemaVersionInt

The minimum version of the function's schema. Functions with a schema version equal to or greater than this value will be included when filtering. Defaults to 0, which means this field is ignored when filtering. This value cannot be negative.

packageNames

Added in 1.0.0-alpha01
val packageNamesSet<String>?

A set of package names to filter functions by. Only functions belonging to these packages will be considered. Defaults to null, which means this field is ignored when filtering.

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-alpha01
val schemaCategoryString?

The category of the function's schema. Defaults to null, which means this field is ignored when filtering.

schemaName

Added in 1.0.0-alpha01
val schemaNameString?

The name of the function's schema. Defaults to null, which means this field is ignored when filtering.