RevealInfo

open class RevealInfo

RevealInfo holds three values for a circular reveal. The circular reveal is represented by two float coordinates for the center, and one float value for the radius.

Constructors

Link copied to clipboard
constructor(centerX: Float, centerY: Float, radius: Float)

Properties

Link copied to clipboard
open var centerX: Float
View-local float coordinate for the centerX of the reveal circular reveal.
Link copied to clipboard
open var centerY: Float
View-local float coordinate for the centerY of the reveal circular reveal.
Link copied to clipboard
val INVALID_RADIUS: Float = 3.4028235E38f
Radius value representing a lack of a circular reveal clip.
Link copied to clipboard
open var radius: Float
Float value for the radius of the reveal circular reveal, or INVALID_RADIUS.

Functions

Link copied to clipboard
open fun isInvalid(): Boolean
Returns whether this RevealInfo has an invalid radius, representing a lack of a circular reveal clip.
Link copied to clipboard
open fun set(centerX: Float, centerY: Float, radius: Float)