CompositionSettings.Builder
class CompositionSettings.Builder
A builder for CompositionSettings instances.
Summary
Public functions |
|
|---|---|
CompositionSettings |
build()Builds the |
CompositionSettings.Builder |
setAlpha(alpha: @FloatRange(from = 0, to = 1) Float)Sets the alpha. |
CompositionSettings.Builder |
setOffset(Sets the offset. |
CompositionSettings.Builder |
Sets the scale. |
Public constructors
Public functions
build
Added in 1.5.0
fun build(): CompositionSettings
Builds the CompositionSettings.
| Returns | |
|---|---|
CompositionSettings |
setAlpha
Added in 1.5.0
fun setAlpha(alpha: @FloatRange(from = 0, to = 1) Float): CompositionSettings.Builder
Sets the alpha. 0 means fully transparent, 1 means fully opaque.
| Parameters | |
|---|---|
alpha: @FloatRange(from = 0, to = 1) Float |
alpha value. |
| Returns | |
|---|---|
CompositionSettings.Builder |
Builder instance. |
setOffset
Added in 1.5.0
fun setOffset(
offsetX: @FloatRange(from = "-1", to = 1) Float,
offsetY: @FloatRange(from = "-1", to = 1) Float
): CompositionSettings.Builder
Sets the offset.
| Parameters | |
|---|---|
offsetX: @FloatRange(from = "-1", to = 1) Float |
offset X value. |
offsetY: @FloatRange(from = "-1", to = 1) Float |
offset Y value. |
| Returns | |
|---|---|
CompositionSettings.Builder |
Builder instance. |
setScale
Added in 1.5.0
fun setScale(scaleX: Float, scaleY: Float): CompositionSettings.Builder
Sets the scale.
| Returns | |
|---|---|
CompositionSettings.Builder |
Builder instance. |