Added in API level 37.2
Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.personalcontext.insight.InsightBranding.Builder |
Builder for InsightBranding.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| InsightBranding |
build()Builds the |
| InsightBranding.Builder |
Sets the color of a specific type. |
| InsightBranding.Builder |
Sets an icon with the specified type at the default position (0). |
| InsightBranding.Builder |
Sets an icon with the specified type and position. |
Public constructors
Builder
Builder()
Public methods
build
Added in API level 37.2
fun build(): InsightBranding
Builds the InsightBranding.
| Return | |
|---|---|
InsightBranding |
This value cannot be null. |
setColor
Added in API level 37.2
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
Added in API level 37.2
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
Added in API level 37.2
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. |