ChosenComplicationDataSource

public final 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 fields

final ComplicationDataSourceInfo

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

final int

The ID of the complication slot that was configured.

final @NonNull Bundle

Any additional extras returned by the complication data source chooser.

Public constructors

ChosenComplicationDataSource(
    int complicationSlotId,
    ComplicationDataSourceInfo complicationDataSourceInfo,
    Bundle extras
)

Public methods

@NonNull String

Public fields

complicationDataSourceInfo

public final ComplicationDataSourceInfo complicationDataSourceInfo

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

complicationSlotId

public final int complicationSlotId

The ID of the complication slot that was configured.

extras

public final @NonNull Bundle extras

Any additional extras returned by the complication data source chooser.

Public constructors

ChosenComplicationDataSource

public final ChosenComplicationDataSource(
    int complicationSlotId,
    ComplicationDataSourceInfo complicationDataSourceInfo,
    Bundle extras
)
Parameters
int complicationSlotId

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.

Bundle extras

Any additional extras returned by the complication data source chooser.

Public methods

toString

public @NonNull String toString()