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 @Nullable Integer

If non null the accessibility traversal index for this configuration.

final @Nullable ComplicationSlotBounds

If non null, the ComplicationSlotBounds for this configuration.

final int

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

final @Nullable Boolean

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

Public constructors

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

Public fields

accessibilityTraversalIndex

@Nullable
public final @Nullable 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

@Nullable
public final @Nullable ComplicationSlotBounds complicationSlotBounds

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

complicationSlotId

@NonNull
public final int complicationSlotId

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

enabled

@Nullable
public final @Nullable 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,
    @Nullable Boolean enabled,
    @Nullable ComplicationSlotBounds complicationSlotBounds,
    @Nullable Integer accessibilityTraversalIndex
)
Parameters
int complicationSlotId

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

@Nullable Boolean enabled

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

@Nullable ComplicationSlotBounds complicationSlotBounds

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

@Nullable 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.