UserStyleFlavor


public final class UserStyleFlavor


Represents user specified preset of watch face.

Summary

Public constructors

Constructs UserStyleFlavor based on UserStyle specified.

Public methods

boolean
equals(Object other)
final @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy>

Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map.

final @NonNull String

An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.

final @NonNull UserStyleData

Style info of the flavor represented by UserStyleData.

int
@NonNull String

Public constructors

UserStyleFlavor

Added in 1.2.0
public UserStyleFlavor(
    @NonNull String id,
    @NonNull UserStyle style,
    @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> complications
)

Constructs UserStyleFlavor based on UserStyle specified.

UserStyleFlavor

Added in 1.2.0
public UserStyleFlavor(
    @NonNull String id,
    @NonNull UserStyleData style,
    @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> complications
)
Parameters
@NonNull String id

An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.

@NonNull UserStyleData style

Style info of the flavor represented by UserStyleData.

@NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> complications

Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map. For absent complication slots default policies are used.

Public methods

equals

public boolean equals(Object other)

getComplications

Added in 1.2.0
public final @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicygetComplications()

Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map. For absent complication slots default policies are used.

getId

Added in 1.2.0
public final @NonNull String getId()

An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.

getStyle

Added in 1.2.0
public final @NonNull UserStyleData getStyle()

Style info of the flavor represented by UserStyleData.

hashCode

public int hashCode()

toString

public @NonNull String toString()