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 |
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
publicUserStyleFlavor(
@NonNull String id,
@NonNull UserStyle style,
@NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> complications
)
Constructs UserStyleFlavor based on UserStyle specified.
UserStyleFlavor
publicUserStyleFlavor(
@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 |
@NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> complications |
Specifies complication data source policy represented by |
Public methods
getComplications
public final @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy>getComplications()
Specifies complication data source policy represented by DefaultComplicationDataSourcePolicy for each ComplicationSlot.id presented in map. For absent complication slots default policies are used.
getId
public final @NonNull StringgetId()
An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.
getStyle
public final @NonNull UserStyleDatagetStyle()
Style info of the flavor represented by UserStyleData.