DimensionBuilders.SpProp.Builder


public final class DimensionBuilders.SpProp.Builder


Builder for SpProp

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull DimensionBuilders.SpProp

Builds an instance from accumulated values.

@NonNull DimensionBuilders.SpProp.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setValue(@Dimension(unit = 2) float value)

Sets the value, in sp.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull DimensionBuilders.SpProp build()

Builds an instance from accumulated values.

setValue

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull DimensionBuilders.SpProp.Builder setValue(@Dimension(unit = 2) float value)

Sets the value, in sp.