RoundedCornerCompat
class RoundedCornerCompat
Represents a rounded corner of the display.
Note: The center coordinates and radius are an approximation of the actual display corner (based on the display's rounded corner shape).
RoundedCornerCompat is immutable.
Summary
Constants |
|
|---|---|
const Int |
The rounded corner is at the bottom-left of the screen. |
const Int |
The rounded corner is at the bottom-right of the screen. |
const Int |
The rounded corner is at the top-left of the screen. |
const Int |
The rounded corner is at the top-right of the screen. |
Public functions |
|
|---|---|
Boolean |
|
Point |
Returns the circle center of a quarter circle approximation of this |
Int |
Returns the x-coordinate of the circle center of a quarter circle approximation of this |
Int |
Returns the y-coordinate of the circle center of a quarter circle approximation of this |
Int |
Get the position of this |
Int |
Returns the radius of a quarter circle approximation of this |
Int |
hashCode() |
String |
toString() |
Constants
POSITION_BOTTOM_LEFT
const val POSITION_BOTTOM_LEFT = 3: Int
The rounded corner is at the bottom-left of the screen.
POSITION_BOTTOM_RIGHT
const val POSITION_BOTTOM_RIGHT = 2: Int
The rounded corner is at the bottom-right of the screen.
POSITION_TOP_LEFT
const val POSITION_TOP_LEFT = 0: Int
The rounded corner is at the top-left of the screen.
POSITION_TOP_RIGHT
const val POSITION_TOP_RIGHT = 1: Int
The rounded corner is at the top-right of the screen.
Public functions
getCenter
fun getCenter(): Point
Returns the circle center of a quarter circle approximation of this RoundedCornerCompat.
| Returns | |
|---|---|
Point |
the center point of this |
getCenterX
fun getCenterX(): Int
Returns the x-coordinate of the circle center of a quarter circle approximation of this RoundedCornerCompat.
| Returns | |
|---|---|
Int |
the x-coordinate of the circle center. |
getCenterY
fun getCenterY(): Int
Returns the y-coordinate of the circle center of a quarter circle approximation of this RoundedCornerCompat.
| Returns | |
|---|---|
Int |
the y-coordinate of the circle center. |
getRadius
fun getRadius(): Int
Returns the radius of a quarter circle approximation of this RoundedCornerCompat.
| Returns | |
|---|---|
Int |
the rounded corner radius of this |