InsightFilter.Builder
public
static
final
class
InsightFilter.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.personalcontext.insight.InsightFilter.Builder |
Builder for a InsightFilter.
Summary
Public constructors | |
|---|---|
Builder()
Create a new instance of the Builder. |
|
Public methods | |
|---|---|
InsightFilter.Builder
|
addInsightType(Class<? extends ContextInsight> insightClass)
Adds a valid insight class to the filter. |
InsightFilter.Builder
|
addInsightType(String insightType)
Adds a valid insight class to the filter. |
InsightFilter
|
build()
Builds the new InsightFilter. |
Inherited methods | |
|---|---|
Public constructors
Public methods
addInsightType
public InsightFilter.Builder addInsightType (Class<? extends ContextInsight> insightClass)
Adds a valid insight class to the filter. By default the filter will allow all insights to be sent to the renderer, regardless of class. Adding one or more valid types changes the filter so that each insight sent to the renderer will be one of those types.
| Parameters | |
|---|---|
insightClass |
Class |
| Returns | |
|---|---|
InsightFilter.Builder |
|
addInsightType
public InsightFilter.Builder addInsightType (String insightType)
Adds a valid insight class to the filter. By default the filter will allow all insights to be sent to the renderer, regardless of class. Adding one or more valid types changes the filter so that each insight sent to the renderer will be one of those types.
| Parameters | |
|---|---|
insightType |
String |
| Returns | |
|---|---|
InsightFilter.Builder |
|
build
public InsightFilter build ()
Builds the new InsightFilter.
| Returns | |
|---|---|
InsightFilter |
|