Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.appfunctions.AppFunctionSearchSpec.Builder |
Builder for constructing AppFunctionSearchSpec.
Summary
| Public constructors | |
|---|---|
Builder()Constructs a |
|
| Public methods | |
|---|---|
| AppFunctionSearchSpec |
build()Constructs an |
| AppFunctionSearchSpec.Builder |
setFunctionNames(functionNames: MutableSet<AppFunctionName!>?)Sets the list of |
| AppFunctionSearchSpec.Builder |
setMinSchemaVersion(minSchemaVersion: Long)Sets the minimum schema version to filter by, or 0 to skip this filter. |
| AppFunctionSearchSpec.Builder |
setPackageNames(packageNames: MutableSet<String!>?)Sets the list of package names to filter by, or null to skip this filter. |
| AppFunctionSearchSpec.Builder |
setSchemaCategory(schemaCategory: String?)Sets the schema category to filter by, or null to skip this filter. |
| AppFunctionSearchSpec.Builder |
setSchemaName(schemaName: String?)Sets the schema name to filter by, or null to skip this filter. |
| AppFunctionSearchSpec.Builder |
setScopes(scopes: MutableSet<Int!>?)Sets the scope types to filter by, or null to skip this filter. |
Public constructors
Public methods
build
fun build(): AppFunctionSearchSpec
Constructs an AppFunctionSearchSpec.
| Return | |
|---|---|
AppFunctionSearchSpec |
This value cannot be null. |
setFunctionNames
fun setFunctionNames(functionNames: MutableSet<AppFunctionName!>?): AppFunctionSearchSpec.Builder
Sets the list of AppFunctionName to filter by, or null to skip this filter.
| Parameters | |
|---|---|
functionNames |
MutableSet<AppFunctionName!>?: the list of AppFunctionName to filter by. This value may be null. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if functionNames is an empty list. |
setMinSchemaVersion
fun setMinSchemaVersion(minSchemaVersion: Long): AppFunctionSearchSpec.Builder
Sets the minimum schema version to filter by, or 0 to skip this filter.
| Parameters | |
|---|---|
minSchemaVersion |
Long: the minimum schema version to filter by. |
| Return | |
|---|---|
AppFunctionSearchSpec.Builder |
This value cannot be null. |
setPackageNames
fun setPackageNames(packageNames: MutableSet<String!>?): AppFunctionSearchSpec.Builder
Sets the list of package names to filter by, or null to skip this filter.
| Parameters | |
|---|---|
packageNames |
MutableSet<String!>?: the list of package names to filter by. This value may be null. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if packageNames is an empty list. |
setSchemaCategory
fun setSchemaCategory(schemaCategory: String?): AppFunctionSearchSpec.Builder
Sets the schema category to filter by, or null to skip this filter.
| Parameters | |
|---|---|
schemaCategory |
String?: the schema category to filter by. This value may be null. |
setSchemaName
fun setSchemaName(schemaName: String?): AppFunctionSearchSpec.Builder
Sets the schema name to filter by, or null to skip this filter.
| Parameters | |
|---|---|
schemaName |
String?: the schema name to filter by. This value may be null. |
setScopes
fun setScopes(scopes: MutableSet<Int!>?): AppFunctionSearchSpec.Builder
Sets the scope types to filter by, or null to skip this filter.
| Parameters | |
|---|---|
scopes |
MutableSet<Int!>?: the set of scope types to filter by. This value may be null. |