UserStyleSetting.LargeCustomValueUserStyleSetting.CustomValueOption


class UserStyleSetting.LargeCustomValueUserStyleSetting.CustomValueOption : UserStyleSetting.Option


An application specific custom value. NB the CustomValueOption.customValue is the same as the CustomValueOption.id.

Summary

Constants

const Int
MAX_SIZE = 125000

The maximum size of customValue in bytes.

Public constructors

Constructs a CustomValueOption.

Public properties

ByteArray

The ByteArray value for this option which is the same as the id.

Inherited functions

From androidx.wear.watchface.style.UserStyleSetting.Option
open operator Boolean
equals(other: Any?)
open Int
open String

Inherited properties

From androidx.wear.watchface.style.UserStyleSetting.Option
Collection<UserStyleSetting>

The list of child UserStyleSettings, if any, forming a hierarchy of UserStyleSettings.

UserStyleSetting.Option.Id

Machine readable Id for the style setting.

Constants

MAX_SIZE

const val MAX_SIZE = 125000: Int

The maximum size of customValue in bytes. This is based on the following assumptions: 2mbps bluetooth bandwidth and a 50 millisecond transfer time (above 50ms delays become quite noticeable).

Public constructors

CustomValueOption

Added in 1.2.0
CustomValueOption(customValue: ByteArray)

Constructs a CustomValueOption.

Parameters
customValue: ByteArray

The ByteArray and value of this CustomValueOption. This may not exceed Option.Id.MAX_LENGTH.

Public properties

customValue

Added in 1.2.0
val customValueByteArray

The ByteArray value for this option which is the same as the id. Note the maximum size in bytes is MAX_SIZE.