MutableUserStyle
class MutableUserStyle : Iterable
A mutable UserStyle. This must be converted back to a UserStyle by calling toUserStyle.
use Watch Face Format instead
Summary
Public functions |
|
|---|---|
operator UserStyleSetting.Option? |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
operator UserStyleSetting.Option? |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open operator Iterator<Map.Entry<UserStyleSetting, UserStyleSetting.Option>> |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
operator Unit |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
operator Unit |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
operator Unit |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
operator Unit |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open String |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
UserStyle |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public properties |
|
|---|---|
Int |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Inherited functions |
||||
|---|---|---|---|---|
|
Public functions
get
operator funget(settingId: UserStyleSetting.Id): UserStyleSetting.Option?
Returns the UserStyleSetting.Option for settingId if there is one or null otherwise. Note this is an O(n) operation.
get
operator funget(setting: UserStyleSetting): UserStyleSetting.Option?
Returns the UserStyleSetting.Option for setting if there is one or null otherwise.
iterator
open operator funiterator(): Iterator<Map.Entry<UserStyleSetting, UserStyleSetting.Option>>
Iterator over the elements of the user style.
set
operator funset(settingId: UserStyleSetting.Id, optionId: UserStyleSetting.Option.Id): Unit
Sets the UserStyleSetting.Option for the setting with the given settingId to the option with the given optionId.
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |
set
operator funset(settingId: UserStyleSetting.Id, option: UserStyleSetting.Option): Unit
Sets the UserStyleSetting.Option for the setting with the given settingId to the given option.
| Parameters | |
|---|---|
settingId: UserStyleSetting.Id |
The |
option: UserStyleSetting.Option |
the |
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |
set
operator funset(setting: UserStyleSetting, optionId: UserStyleSetting.Option.Id): Unit
Sets the UserStyleSetting.Option for setting to the option with the given optionId.
| Parameters | |
|---|---|
setting: UserStyleSetting |
The |
optionId: UserStyleSetting.Option.Id |
the |
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |
set
operator funset(setting: UserStyleSetting, option: UserStyleSetting.Option): Unit
Sets the UserStyleSetting.Option for setting to the given option.
| Parameters | |
|---|---|
setting: UserStyleSetting |
The |
option: UserStyleSetting.Option |
the |
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |
toUserStyle
funtoUserStyle(): UserStyle
Converts this instance to an immutable UserStyle with the same mapping.