Added in version 37.2

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

Added in version 37.2
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

Added in version 37.2
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

Added in version 37.2
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

Added in version 37.2
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