ChosenComplicationDataSource


class ChosenComplicationDataSource


The complication data source that was chosen by the user for a given androidx.wear.watchface.ComplicationSlot id as a result to a call to EditorSession.openComplicationDataSourceChooser.

Summary

Public constructors

ChosenComplicationDataSource(
    complicationSlotId: Int,
    complicationDataSourceInfo: ComplicationDataSourceInfo?,
    extras: Bundle
)

Public functions

open String

Public properties

ComplicationDataSourceInfo?

The complication data source that was chosen for this slot, or null if the empty complication source was was chosen.

Int

The ID of the complication slot that was configured.

Bundle

Any additional extras returned by the complication data source chooser.

Public constructors

ChosenComplicationDataSource

Added in 1.0.0
ChosenComplicationDataSource(
    complicationSlotId: Int,
    complicationDataSourceInfo: ComplicationDataSourceInfo?,
    extras: Bundle
)
Parameters
complicationSlotId: Int

The ID of the complication slot that was configured.

complicationDataSourceInfo: ComplicationDataSourceInfo?

The complication data source that was chosen for this slot, or null if the empty complication source was was chosen.

extras: Bundle

Any additional extras returned by the complication data source chooser.

Public functions

toString

open fun toString(): String

Public properties

complicationDataSourceInfo

Added in 1.0.0
val complicationDataSourceInfoComplicationDataSourceInfo?

The complication data source that was chosen for this slot, or null if the empty complication source was was chosen.

complicationSlotId

Added in 1.0.0
val complicationSlotIdInt

The ID of the complication slot that was configured.

extras

Added in 1.0.0
val extrasBundle

Any additional extras returned by the complication data source chooser.