AppFunctionSearchSpec
class AppFunctionSearchSpec
Defines the specifications for filtering and searching app function snapshots.
Summary
Public constructors |
|---|
AppFunctionSearchSpec(Creates a new instance of |
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
AppFunctionSearchSpec(
packageNames: Set<String>? = null,
schemaCategory: String? = null,
schemaName: String? = null,
minSchemaVersion: Int = 0
)
Creates a new instance of AppFunctionSearchSpec.
Public properties
minSchemaVersion
val minSchemaVersion: Int
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
val packageNames: Set<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
val schemaCategory: String?
The category of the function's schema. Defaults to null, which means this field is ignored when filtering.
schemaName
val schemaName: String?
The name of the function's schema. Defaults to null, which means this field is ignored when filtering.