ColorProtection
class ColorProtection : Protection
A type of protection which draws the plain color.
Summary
Public constructors |
|---|
ColorProtection(side: Int)Creates an instance associated with a |
ColorProtection(side: Int, color: @ColorInt Int)Creates an instance associated with a |
Public functions |
|
|---|---|
@ColorInt Int |
getColor()Gets the color associated with this protection. |
Unit |
Sets the color to the protection. |
Inherited functions |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
ColorProtection
ColorProtection(side: Int)
Creates an instance associated with a WindowInsetsCompat.Side.
| Parameters | |
|---|---|
side: Int |
the given |
ColorProtection
ColorProtection(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. |