UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay

public final class UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay


Overrides to be applied to the corresponding androidx.wear.watchface.ComplicationSlot]'s initial config (as specified in it's constructor) when the setting is selected.

Summary

Public fields

final Integer

If non null the accessibility traversal index for this configuration.

final ComplicationSlotBounds

If non null, the ComplicationSlotBounds for this configuration.

final int

The id of the androidx.wear.watchface.ComplicationSlot to configure.

final Boolean

If non null, whether the complication should be enabled for this configuration.

Public constructors

ComplicationSlotOverlay(
    int complicationSlotId,
    Boolean enabled,
    ComplicationSlotBounds complicationSlotBounds,
    Integer accessibilityTraversalIndex
)

Public fields

accessibilityTraversalIndex

public final Integer accessibilityTraversalIndex

If non null the accessibility traversal index for this configuration. This is used to determine the order in which accessibility labels for the watch face are read to the user.

complicationSlotBounds

public final ComplicationSlotBounds complicationSlotBounds

If non null, the ComplicationSlotBounds for this configuration. If null then no changes are made.

complicationSlotId

public final int complicationSlotId

The id of the androidx.wear.watchface.ComplicationSlot to configure.

enabled

public final Boolean enabled

If non null, whether the complication should be enabled for this configuration. If null then no changes are made.

Public constructors

ComplicationSlotOverlay

public final ComplicationSlotOverlay(
    int complicationSlotId,
    Boolean enabled,
    ComplicationSlotBounds complicationSlotBounds,
    Integer accessibilityTraversalIndex
)
Parameters
int complicationSlotId

The id of the androidx.wear.watchface.ComplicationSlot to configure.

Boolean enabled

If non null, whether the complication should be enabled for this configuration. If null then no changes are made.

ComplicationSlotBounds complicationSlotBounds

If non null, the ComplicationSlotBounds for this configuration. If null then no changes are made.

Integer accessibilityTraversalIndex

If non null the accessibility traversal index for this configuration. This is used to determine the order in which accessibility labels for the watch face are read to the user.