UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

public final class UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder


Constructs a ComplicationSlotOverlay.Builder.

Summary

Public constructors

Builder(int complicationSlotId)

Public constructors

Builder

public final Builder(int complicationSlotId)
Parameters
int complicationSlotId

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

Public methods

setAccessibilityTraversalIndex

@NonNull
public final UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder setAccessibilityTraversalIndex(int accessibilityTraversalIndex)

Overrides the androidx.wear.watchface.ComplicationSlot's accessibility traversal index. This is used to sort androidx.wear.watchface.ContentDescriptionLabels. If unset we will order the complications by their initial accessibilityTraversalIndex (usually the same as their id).

setComplicationSlotBounds

@NonNull
public final UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder setComplicationSlotBounds(
    @NonNull ComplicationSlotBounds complicationSlotBounds
)

Overrides the complication's per ComplicationSlotBounds.

setEnabled

@NonNull
public final UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder setEnabled(boolean enabled)

Overrides the complication's enabled flag.