UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder


class UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder


Constructs a ComplicationSlotOverlay.Builder.

Summary

Public constructors

Builder(complicationSlotId: Int)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public functions

UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
setAccessibilityTraversalIndex(accessibilityTraversalIndex: Int)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
setComplicationSlotBounds(
    complicationSlotBounds: ComplicationSlotBounds
)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
setEnabled(enabled: Boolean)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
setNameResourceId(nameResourceId: Int)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
setScreenReaderNameResourceId(screenReaderNameResourceId: Int)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.3.0-alpha06
Builder(complicationSlotId: Int)
Parameters
complicationSlotId: Int

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

Public functions

build

Added in 1.0.0
Deprecated in 1.3.0-alpha06
fun build(): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay

setAccessibilityTraversalIndex

Added in 1.0.0
Deprecated in 1.3.0-alpha06
fun setAccessibilityTraversalIndex(accessibilityTraversalIndex: Int): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

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

Added in 1.0.0
Deprecated in 1.3.0-alpha06
fun setComplicationSlotBounds(
    complicationSlotBounds: ComplicationSlotBounds
): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

Overrides the complication's per ComplicationSlotBounds.

setEnabled

Added in 1.0.0
Deprecated in 1.3.0-alpha06
fun setEnabled(enabled: Boolean): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

Overrides the complication's enabled flag.

setNameResourceId

Added in 1.2.0
Deprecated in 1.3.0-alpha06
fun setNameResourceId(nameResourceId: Int): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

Overrides the ID of a string resource containing the name of this complication slot, for use by a screen reader. This resource should be a short sentence. E.g. "Left complication" for the left complication.

setScreenReaderNameResourceId

Added in 1.2.0
Deprecated in 1.3.0-alpha06
fun setScreenReaderNameResourceId(screenReaderNameResourceId: Int): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

Overrides the ID of a string resource containing the name of this complication slot, for use by a screen reader. This resource should be a short sentence. E.g. "Left complication" for the left complication.