BoundingArc
@ComplicationExperimental
class BoundingArc
In combination with a bounding Rect, BoundingArc describes the geometry of an edge complication.
use Watch Face Format instead
Summary
Public constructors |
|---|
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public functions |
|
|---|---|
open operator Boolean |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open Int |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Boolean |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open String |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public properties |
|
|---|---|
Float |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
@Px Float |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Float |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public constructors
BoundingArc
BoundingArc(startAngle: Float, totalAngle: Float, thickness: @Px Float)
Public functions
hitTest
funhitTest(rect: Rect, x: @Px Float, y: @Px Float): Boolean
Detects whether the supplied point falls within the edge complication's arc.
| Parameters | |
|---|---|
rect: Rect |
The bounding |
x: @Px Float |
The x-coordinate of the point to test in pixels |
y: @Px Float |
The y-coordinate of the point to test in pixels |
| Returns | |
|---|---|
Boolean |
Whether or not the point is within the arc |
Public properties
startAngle
val startAngle: Float
The staring angle of the arc in degrees (0 degrees = 12 o'clock position).
thickness
val thickness: @Px Float
The thickness of the arc as a fraction of min(boundingRect.width, boundingRect.height).
totalAngle
val totalAngle: Float
The total angle of the arc on degrees.