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.

use Watch Face Format instead

Summary

Public constructors

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

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public methods

final ComplicationDataSourceInfo

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

final int

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

final @NonNull Bundle

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

@NonNull String

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public constructors

ChosenComplicationDataSource

Added in 1.0.0
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
public final int getComplicationSlotId()

The ID of the complication slot that was configured.

getExtras

Added in 1.0.0
Deprecated in 1.3.0-alpha06
public final @NonNull Bundle getExtras()

Any additional extras returned by the complication data source chooser.

toString

public @NonNull String toString()