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.

Summary

Public constructors

Public functions

abstract CanvasComplicationFactory

Returns the CanvasComplicationFactory to be used for the given slotId.

open ComplicationTapFilter

Returns the ComplicationTapFilter to be used for the given edge slotId.

Public constructors

ComplicationSlotInflationFactory

Added in 1.1.0
ComplicationSlotInflationFactory()

Public functions

getCanvasComplicationFactory

Added in 1.1.0
abstract fun getCanvasComplicationFactory(slotId: Int): CanvasComplicationFactory

Returns the CanvasComplicationFactory to be used for the given slotId.

getEdgeComplicationTapFilter

Added in 1.1.0
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.