InsightVisualizerClientConfig
class InsightVisualizerClientConfig
| kotlin.Any | |
| ↳ | android.service.personalcontext.embedded.InsightVisualizerClientConfig |
Data class containing the state of the client surface.
Summary
| Public methods | |
|---|---|
| Color |
Returns the background color of the client over which the embedded surface will be rendered. |
| Bundle |
Returns a bundle of extra data provided by the client app. |
| Int |
Returns the maximum available height in pixels for the visualization to display in. |
| Int |
Returns the maximum available width in pixels for the visualization to display in. |
Public methods
getBackgroundColor
fun getBackgroundColor(): Color
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.
| Return | |
|---|---|
Color |
This value cannot be null. |
getExtras
fun getExtras(): Bundle
Returns a bundle of extra data provided by the client app. This may contain client configuration that is specific to this particular client.
| Return | |
|---|---|
Bundle |
This value cannot be null. |
getMaximumHeight
fun getMaximumHeight(): Int
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.
getMaximumWidth
fun getMaximumWidth(): Int
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.