Added in API level 37.2
Builder
class Builder
| kotlin.Any | |
| ↳ | 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(hintClass: Class<out ContextHint!>, filterType: Int)Adds a filter that matches on a |
| HintFilter.Builder |
addPackage(packageName: String, filterType: Int)Adds a filter that matches based on the hint publisher's package. |
| HintFilter |
build()Builds the new HintFilter. |
Public constructors
Public methods
addHintType
Added in API level 37.2
fun addHintType(
hintClass: Class<out ContextHint!>,
filterType: Int
): HintFilter.Builder
Adds a filter that matches on a ContextHint subclass type.
| Parameters | |
|---|---|
hintClass |
Class<out ContextHint!>: 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:
|
addPackage
Added in API level 37.2
fun addPackage(
packageName: String,
filterType: Int
): HintFilter.Builder
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:
|