AppFunctionSearchSpec.Builder


public static final class AppFunctionSearchSpec.Builder
extends Object

java.lang.Object
   ↳ android.app.appfunctions.AppFunctionSearchSpec.Builder


Builder for constructing AppFunctionSearchSpec.

Summary

Public constructors

Builder()

Constructs a AppFunctionSearchSpec.Builder.

Public methods

AppFunctionSearchSpec build()

Constructs an AppFunctionSearchSpec.

AppFunctionSearchSpec.Builder setFunctionNames(Set<AppFunctionName> functionNames)

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

AppFunctionSearchSpec.Builder setMinSchemaVersion(long minSchemaVersion)

Sets the minimum schema version to filter by, or 0 to skip this filter.

AppFunctionSearchSpec.Builder setPackageNames(Set<String> packageNames)

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

AppFunctionSearchSpec.Builder setSchemaCategory(String schemaCategory)

Sets the schema category to filter by, or null to skip this filter.

AppFunctionSearchSpec.Builder setSchemaName(String schemaName)

Sets the schema name to filter by, or null to skip this filter.

AppFunctionSearchSpec.Builder setScopes(Set<Integer> scopes)

Sets the scope types to filter by, or null to skip this filter.

Inherited methods

Public constructors

Builder

Added in API level 37
public Builder ()

Constructs a AppFunctionSearchSpec.Builder.

Public methods

build

Added in API level 37
public AppFunctionSearchSpec build ()

Constructs an AppFunctionSearchSpec.

Returns
AppFunctionSearchSpec This value cannot be null.

setFunctionNames

Added in API level 37
public AppFunctionSearchSpec.Builder setFunctionNames (Set<AppFunctionName> functionNames)

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

Parameters
functionNames Set: the list of AppFunctionName to filter by.
This value may be null.

Returns
AppFunctionSearchSpec.Builder

Throws
IllegalArgumentException if functionNames is an empty list.

setMinSchemaVersion

Added in API level 37
public AppFunctionSearchSpec.Builder setMinSchemaVersion (long minSchemaVersion)

Sets the minimum schema version to filter by, or 0 to skip this filter.

Parameters
minSchemaVersion long: the minimum schema version to filter by.

Returns
AppFunctionSearchSpec.Builder This value cannot be null.

setPackageNames

Added in API level 37
public AppFunctionSearchSpec.Builder setPackageNames (Set<String> packageNames)

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

Parameters
packageNames Set: the list of package names to filter by.
This value may be null.

Returns
AppFunctionSearchSpec.Builder

Throws
IllegalArgumentException if packageNames is an empty list.

setSchemaCategory

Added in API level 37
public AppFunctionSearchSpec.Builder setSchemaCategory (String schemaCategory)

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.

Returns
AppFunctionSearchSpec.Builder

setSchemaName

Added in API level 37
public AppFunctionSearchSpec.Builder setSchemaName (String schemaName)

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.

Returns
AppFunctionSearchSpec.Builder

setScopes

Added in API level 37
public AppFunctionSearchSpec.Builder setScopes (Set<Integer> scopes)

Sets the scope types to filter by, or null to skip this filter.

Parameters
scopes Set: the set of scope types to filter by.
This value may be null.

Returns
AppFunctionSearchSpec.Builder