InsightVisualizerClientConfig
public
final
class
InsightVisualizerClientConfig
extends Object
| java.lang.Object | |
| ↳ | android.service.personalcontext.embedded.InsightVisualizerClientConfig |
Data class containing the state of the client surface.
Summary
Public methods | |
|---|---|
Color
|
getBackgroundColor()
Returns the background color of the client over which the embedded surface will be rendered. |
Bundle
|
getExtras()
Returns a bundle of extra data provided by the client app. |
int
|
getMaximumHeight()
Returns the maximum available height in pixels for the visualization to display in. |
int
|
getMaximumWidth()
Returns the maximum available width in pixels for the visualization to display in. |
Inherited methods | |
|---|---|
Public methods
getBackgroundColor
public Color getBackgroundColor ()
Returns the background color of the client over which the embedded surface will be rendered.
The visualizer should use this color for any "empty" portions of the UI, such as the corners outside a rounded chip. Otherwise, if the client application is displaying the surface in z-below mode, those areas will display as black as the entire area reserved for the surface is rendered solely by the visualizer.
| Returns | |
|---|---|
Color |
This value cannot be null. |
getExtras
public Bundle getExtras ()
Returns a bundle of extra data provided by the client app. This may contain client configuration that is specific to this particular client.
| Returns | |
|---|---|
Bundle |
This value cannot be null. |
getMaximumHeight
public int getMaximumHeight ()
Returns the maximum available height in pixels for the visualization to display in.
A value of 0 indicates that there is no maximum height limit.
| Returns | |
|---|---|
int |
|
getMaximumWidth
public int getMaximumWidth ()
Returns the maximum available width in pixels for the visualization to display in.
A value of 0 indicates that there is no maximum width limit.
| Returns | |
|---|---|
int |
|