ComplicationSlotInflationFactory


abstract class ComplicationSlotInflationFactory


A ComplicationSlotInflationFactory provides the CanvasComplicationFactory and where necessary edge complication ComplicationTapFilters needed for inflating ComplicationSlots.

If a watch face doesn't define it's ComplicationSlots in XML then this isn't used.

use Watch Face Format instead

Summary

Public constructors

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

Public functions

abstract CanvasComplicationFactory

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

open ComplicationTapFilter

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

Public constructors

ComplicationSlotInflationFactory

Added in 1.1.0
Deprecated in 1.3.0-alpha06
ComplicationSlotInflationFactory()

Public functions

getCanvasComplicationFactory

Added in 1.1.0
Deprecated in 1.3.0-alpha06
abstract fun getCanvasComplicationFactory(slotId: Int): CanvasComplicationFactory

Returns the CanvasComplicationFactory to be used for the given slotId.

getEdgeComplicationTapFilter

Added in 1.1.0
Deprecated in 1.3.0-alpha06
open fun getEdgeComplicationTapFilter(slotId: Int): ComplicationTapFilter

Returns the ComplicationTapFilter to be used for the given edge slotId. Note not all watch faces have edge complications.