Added in API level 37

Builder


class Builder
kotlin.Any
   ↳ android.app.appfunctions.AppFunctionSearchSpec.Builder

Builder for constructing AppFunctionSearchSpec.

Summary

Public constructors

Constructs a AppFunctionSearchSpec.Builder.

Public methods
AppFunctionSearchSpec

Constructs an AppFunctionSearchSpec.

AppFunctionSearchSpec.Builder

Sets the list of AppFunctionName to filter by, or null to skip this filter.

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

Builder

Added in API level 37
Builder()

Constructs a AppFunctionSearchSpec.Builder.

Public methods

build

Added in API level 37
fun build(): AppFunctionSearchSpec

Constructs an AppFunctionSearchSpec.

Return
AppFunctionSearchSpec This value cannot be null.

setFunctionNames

Added in API level 37
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

Added in API level 37
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

Added in API level 37
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

Added in API level 37
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

Added in API level 37
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

Added in API level 37
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.