GradientProtection

A type of protection which draws the gradient color.

Constructors

Link copied to clipboard
constructor(side: Int)
Creates an instance associated with a WindowInsetsCompat.Side.
constructor(side: Int, @ColorInt color: Int)
Creates an instance associated with a WindowInsetsCompat.Side.

Functions

Link copied to clipboard
open fun getColor(): Int
Gets the color associated with this protection.
Link copied to clipboard
open fun getScale(): Float
Gets the scale of the thickness of the protection.
Link copied to clipboard
open fun setColor(@ColorInt color: Int)
Sets the color to the protection.
Link copied to clipboard
open fun setScale(scale: Float)
Sets the scale of the thickness to the protection.