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 HintFilter Builder.

Public methods

HintFilter.Builder addHintType(Class<? extends ContextHint> hintClass, int filterType)

Adds a filter that matches on a ContextHint subclass type.

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

Builder

Added in version 37.2
public Builder ()

Creates a new instance of a HintFilter Builder.

Public methods

addHintType

Added in version 37.2
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

Added in version 37.2
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

Added in version 37.2
public HintFilter build ()

Builds the new HintFilter.

Returns
HintFilter