Builder


class Builder
kotlin.Any
   ↳ android.app.personalcontext.hint.HintFilter.Builder

Builder for a HintFilter.

Summary

Public constructors

Creates a new instance of a HintFilter Builder.

Public methods
HintFilter.Builder
addHintType(hintClass: Class<out ContextHint!>, filterType: Int)

Adds a filter that matches on a ContextHint subclass type.

HintFilter.Builder
addPackage(packageName: String, filterType: Int)

Adds a filter that matches based on the hint publisher's package.

HintFilter

Builds the new HintFilter.

Public constructors

Builder

Builder()

Creates a new instance of a HintFilter Builder.

Public methods

addHintType

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

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:

build

fun build(): HintFilter

Builds the new HintFilter.