UserStyleFlavor


public final class UserStyleFlavor


Represents user specified preset of watch face.

use Watch Face Format instead

Summary

Public constructors

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

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

Public methods

boolean
equals(Object other)

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

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

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

final @NonNull String

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

final @NonNull UserStyleData

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

int

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

UserStyleFlavor

Added in 1.2.0
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
public final @NonNull UserStyleData getStyle()

Style info of the flavor represented by UserStyleData.

hashCode

public int hashCode()

toString

public @NonNull String toString()