Builder


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

Builder for InsightBranding.

Summary

Public constructors

Public methods
InsightBranding

Builds the InsightBranding.

InsightBranding.Builder
setColor(type: Int, color: Int)

Sets the color of a specific type.

InsightBranding.Builder
setIcon(type: Int, icon: Icon?)

Sets an icon with the specified type at the default position (0).

InsightBranding.Builder
setIcon(type: Int, position: Int, icon: Icon?)

Sets an icon with the specified type and position.

Public constructors

Builder

Builder()

Public methods

build

fun build(): InsightBranding

Builds the InsightBranding.

Return
InsightBranding This value cannot be null.

setColor

fun setColor(
    type: Int,
    color: Int
): InsightBranding.Builder

Sets the color of a specific type.

Parameters
type Int: Value is one of the following:
Return
InsightBranding.Builder This value cannot be null.

setIcon

fun setIcon(
    type: Int,
    icon: Icon?
): InsightBranding.Builder

Sets an icon with the specified type at the default position (0).

Parameters
type Int: the android.app.personalcontext.insight.InsightBranding.IconType of the icon.
Value is one of the following:
icon Icon?: the icon to set, or null to clear
Return
InsightBranding.Builder This value cannot be null.

setIcon

fun setIcon(
    type: Int,
    position: Int,
    icon: Icon?
): InsightBranding.Builder

Sets an icon with the specified type and position.

Parameters
type Int: the android.app.personalcontext.insight.InsightBranding.IconType of the icon.
Value is one of the following:
position Int: the position of the icon relative to other icons of the same type. Note that if the same position is assigned to multiple icons of the same type, then it is the rendering code's policy for how this is interpreted. The ordering may also be localized, such as for RTL.
icon Icon?: the icon to set, or null to clear
Return
InsightBranding.Builder This value cannot be null.