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 constructors

ChosenComplicationDataSource(
    int complicationSlotId,
    ComplicationDataSourceInfo complicationDataSourceInfo,
    @NonNull Bundle extras
)

Public methods

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.

@NonNull String

Public constructors

ChosenComplicationDataSource

Added in 1.0.0
public ChosenComplicationDataSource(
    int complicationSlotId,
    ComplicationDataSourceInfo complicationDataSourceInfo,
    @NonNull 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.

@NonNull Bundle extras

Any additional extras returned by the complication data source chooser.

Public methods

getComplicationDataSourceInfo

Added in 1.0.0
public final ComplicationDataSourceInfo getComplicationDataSourceInfo()

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

getComplicationSlotId

Added in 1.0.0
public final int getComplicationSlotId()

The ID of the complication slot that was configured.

getExtras

Added in 1.0.0
public final @NonNull Bundle getExtras()

Any additional extras returned by the complication data source chooser.

toString

public @NonNull String toString()