UserStyleSetting.LargeCustomValueUserStyleSetting.CustomValueOption


public final class UserStyleSetting.LargeCustomValueUserStyleSetting.CustomValueOption extends UserStyleSetting.Option


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

Summary

Constants

static final int
MAX_SIZE = 125000

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

Public constructors

CustomValueOption(@NonNull byte[] customValue)

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

Public methods

final @NonNull byte[]

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

Inherited methods

From androidx.wear.watchface.style.UserStyleSetting.Option
boolean
equals(Object other)

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

final @NonNull Collection<@NonNull UserStyleSetting>

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

final @NonNull UserStyleSetting.Option.Id

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.

Constants

MAX_SIZE

public static final int MAX_SIZE = 125000

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
Deprecated in 1.3.0-alpha06
public CustomValueOption(@NonNull byte[] customValue)

Constructs a CustomValueOption.

Parameters
@NonNull byte[] customValue

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

Public methods

getCustomValue

Added in 1.2.0
Deprecated in 1.3.0-alpha06
public final @NonNull byte[] getCustomValue()

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