ColorProtection
public class ColorProtection extends Protection
A type of protection which draws the plain color.
Summary
Public constructors |
|---|
ColorProtection(int side)Creates an instance associated with a |
ColorProtection(int side, @ColorInt int color)Creates an instance associated with a |
Public methods |
|
|---|---|
@ColorInt int |
getColor()Gets the color associated with this protection. |
void |
Sets the color to the protection. |
Inherited methods |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
ColorProtection
public ColorProtection(int side)
Creates an instance associated with a WindowInsetsCompat.Side.
| Parameters | |
|---|---|
int side |
the given |
ColorProtection
public ColorProtection(int side, @ColorInt int color)
Creates an instance associated with a WindowInsetsCompat.Side.
| Parameters | |
|---|---|
int side |
the given |
@ColorInt int color |
The color to draw. |