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 |
|
Public methods | |
|---|---|
AppFunctionSearchSpec
|
build()
Constructs an |
AppFunctionSearchSpec.Builder
|
setFunctionNames(Set<AppFunctionName> functionNames)
Sets the list of |
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
Public methods
build
public AppFunctionSearchSpec build ()
Constructs an AppFunctionSearchSpec.
| Returns | |
|---|---|
AppFunctionSearchSpec |
This value cannot be null. |
setFunctionNames
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
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. |
See also:
setPackageNames
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
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 |
|
See also:
setSchemaName
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 |
|
See also:
setScopes
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 |
|
See also: