Builder


class Builder
kotlin.Any
   ↳ android.app.personalcontext.insight.InsightFilter.Builder

Builder for a InsightFilter.

Summary

Public constructors

Create a new instance of the Builder.

Public methods
InsightFilter.Builder
addInsightType(insightClass: Class<out ContextInsight!>)

Adds a valid insight class to the filter.

InsightFilter.Builder
addInsightType(insightType: String)

Adds a valid insight class to the filter.

InsightFilter

Builds the new InsightFilter.

Public constructors

Builder

Builder()

Create a new instance of the Builder.

Public methods

addInsightType

fun addInsightType(insightClass: Class<out ContextInsight!>): InsightFilter.Builder

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.

addInsightType

fun addInsightType(insightType: String): InsightFilter.Builder

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.

build

fun build(): InsightFilter

Builds the new InsightFilter.