InsightBranding.Builder
public
static
final
class
InsightBranding.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.personalcontext.insight.InsightBranding.Builder |
Builder for InsightBranding.
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
InsightBranding
|
build()
Builds the |
InsightBranding.Builder
|
setColor(int type, int color)
Sets the color of a specific type. |
InsightBranding.Builder
|
setIcon(int type, Icon icon)
Sets an icon with the specified type at the default position (0). |
InsightBranding.Builder
|
setIcon(int type, int position, Icon icon)
Sets an icon with the specified type and position. |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder ()
Public methods
build
public InsightBranding build ()
Builds the InsightBranding.
| Returns | |
|---|---|
InsightBranding |
This value cannot be null. |
setColor
public InsightBranding.Builder setColor (int type, int color)
Sets the color of a specific type.
| Parameters | |
|---|---|
type |
int: Value is one of the following:
|
color |
int |
| Returns | |
|---|---|
InsightBranding.Builder |
This value cannot be null. |
setIcon
public InsightBranding.Builder setIcon (int type, Icon icon)
Sets an icon with the specified type at the default position (0).
| Parameters | |
|---|---|
type |
int: the ERROR(IconType/android.app.personalcontext.insight.InsightBranding.IconType IconType) of the icon.
Value is one of the following: |
icon |
Icon: the icon to set, or null to clear |
| Returns | |
|---|---|
InsightBranding.Builder |
This value cannot be null. |
setIcon
public InsightBranding.Builder setIcon (int type, int position, Icon icon)
Sets an icon with the specified type and position.
| Parameters | |
|---|---|
type |
int: the ERROR(IconType/android.app.personalcontext.insight.InsightBranding.IconType 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 |
| Returns | |
|---|---|
InsightBranding.Builder |
This value cannot be null. |