GradientProtection
class GradientProtection : Protection
A type of protection which draws the gradient color.
Summary
Public constructors |
|---|
GradientProtection(side: Int)Creates an instance associated with a |
GradientProtection(side: Int, color: @ColorInt Int)Creates an instance associated with a |
Public functions |
|
|---|---|
@ColorInt Int |
getColor()Gets the color associated with this protection. |
Float |
getScale()Gets the scale of the thickness of the protection. |
Unit |
Sets the color to the protection. |
Unit |
Sets the scale of the thickness to the protection. |
Inherited functions |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
GradientProtection
GradientProtection(side: Int)
Creates an instance associated with a WindowInsetsCompat.Side.
| Parameters | |
|---|---|
side: Int |
the given |
GradientProtection
GradientProtection(side: Int, color: @ColorInt Int)
Creates an instance associated with a WindowInsetsCompat.Side.
| Parameters | |
|---|---|
side: Int |
the given |
color: @ColorInt Int |
The color to draw. |
Public functions
getColor
fun getColor(): @ColorInt Int
Gets the color associated with this protection.
getScale
fun getScale(): Float
Gets the scale of the thickness of the protection.
| Returns | |
|---|---|
Float |
The scale of the thickness. |