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 @Nullable 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,
    @Nullable ComplicationDataSourceInfo complicationDataSourceInfo,
    @NonNull Bundle extras
)

Public methods

@NonNull String

Public fields

complicationDataSourceInfo

@Nullable
public final @Nullable ComplicationDataSourceInfo complicationDataSourceInfo

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

complicationSlotId

@NonNull
public final int complicationSlotId

The ID of the complication slot that was configured.

extras

@NonNull
public final @NonNull Bundle extras

Any additional extras returned by the complication data source chooser.

Public constructors

ChosenComplicationDataSource

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

The ID of the complication slot that was configured.

@Nullable ComplicationDataSourceInfo complicationDataSourceInfo

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

@NonNull Bundle extras

Any additional extras returned by the complication data source chooser.

Public methods

toString

@NonNull
public String toString()