HintFilter.Builder
public
static
final
class
HintFilter.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.personalcontext.hint.HintFilter.Builder |
Builder for a HintFilter.
Summary
Public constructors | |
|---|---|
Builder()
Creates a new instance of a |
|
Public methods | |
|---|---|
HintFilter.Builder
|
addHintType(Class<? extends ContextHint> hintClass, int filterType)
Adds a filter that matches on a |
HintFilter.Builder
|
addPackage(String packageName, int filterType)
Adds a filter that matches based on the hint publisher's package. |
HintFilter
|
build()
Builds the new HintFilter. |
Inherited methods | |
|---|---|
Public constructors
Public methods
addHintType
public HintFilter.Builder addHintType (Class<? extends ContextHint> hintClass, int filterType)
Adds a filter that matches on a ContextHint subclass type.
| Parameters | |
|---|---|
hintClass |
Class: the ContextHint subclass to match on |
filterType |
int: the filter flags that should be applied when looking for the class.
Value is either 0 or a combination of the following:
|
| Returns | |
|---|---|
HintFilter.Builder |
|
addPackage
public HintFilter.Builder addPackage (String packageName, int filterType)
Adds a filter that matches based on the hint publisher's package.
| Parameters | |
|---|---|
packageName |
String: the name of the publishing package to look for. |
filterType |
int: the filter flags that should be applied when looking for this package.
Value is either 0 or a combination of the following:
|
| Returns | |
|---|---|
HintFilter.Builder |
|
build
public HintFilter build ()
Builds the new HintFilter.
| Returns | |
|---|---|
HintFilter |
|