ComplicationTemplate

A complication renderer from Data to any of the supported types.

Inheritors

Properties

Link copied to clipboard
abstract val context: Context

Functions

Link copied to clipboard
Link copied to clipboard
fun ComplicationTemplate<*>.longText(icon: Icon?, type: SmallImageType = SmallImageType.PHOTO, title: String?, text: String, launchIntent: PendingIntent?, contentDescription: ComplicationText? = null): LongTextComplicationData
Link copied to clipboard
fun ComplicationTemplate<*>.photoImage(photoImage: Icon, name: String, launchIntent: PendingIntent?, contentDescription: ComplicationText? = null): PhotoImageComplicationData
Link copied to clipboard
abstract fun previewData(): D
Link copied to clipboard
Link copied to clipboard
abstract fun render(type: ComplicationType, data: D): ComplicationData
Link copied to clipboard
fun ComplicationTemplate<*>.shortText(title: String?, text: String, @DrawableRes icon: Int?, launchIntent: PendingIntent?, contentDescription: ComplicationText? = null): ShortTextComplicationData
Link copied to clipboard
fun ComplicationTemplate<*>.smallImage(icon: Icon, type: SmallImageType = SmallImageType.PHOTO, name: String, launchIntent: PendingIntent?, contentDescription: ComplicationText? = null): SmallImageComplicationData
Link copied to clipboard
Link copied to clipboard