AlphaScope

Known direct subclasses
LayerStyleScope

This interface is deprecated. This scope type is being removed.

Known indirect subclasses
StyleScope

This interface is deprecated. This scope type is being removed.


An interface that introduces the alpha property to a Style receiver scope.

See also
StyleScope

Summary

Public functions

Unit
alpha(value: @FloatRange(from = 0.0, to = 1.0) Float)

This function is deprecated. This scope type is being removed.

Cmn

Public functions

alpha

fun alpha(value: @FloatRange(from = 0.0, to = 1.0) Float): Unit

Sets the opacity of the component. A value of 1.0f means fully opaque, 0.0f means fully transparent.

This property is not inherited

Parameters
value: @FloatRange(from = 0.0, to = 1.0) Float

The alpha value (0.0f to 1.0f).

See also
alpha
graphicsLayer