# BoundingArc

Artifact: [androidx.wear.watchface:watchface](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/ComplicationSlot.kt+class:androidx.wear.watchface.BoundingArc) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

*** ** * ** ***


```
@ComplicationExperimental
public final class BoundingArc
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

In combination with a bounding `https://developer.android.com/reference/android/graphics/Rect.html`, BoundingArc describes the geometry of an edge complication.

use Watch Face Format instead

## Summary

| ### Public constructors |
|---|
| `[BoundingArc](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#BoundingArc(kotlin.Float,kotlin.Float,kotlin.Float))(float startAngle, float totalAngle, @https://developer.android.com/reference/androidx/annotation/Px float thickness)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public methods |
|---|---|
| `boolean` | `[equals](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final float` | `[getStartAngle](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#getStartAngle())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final float` | `[getThickness](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#getThickness())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final float` | `[getTotalAngle](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#getTotalAngle())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#hashCode())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `[hitTest](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#hitTest(android.graphics.Rect,kotlin.Float,kotlin.Float))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html rect, @https://developer.android.com/reference/androidx/annotation/Px float x, @https://developer.android.com/reference/androidx/annotation/Px float y)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[toString](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#toString())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### BoundingArc

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public [BoundingArc](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#BoundingArc(kotlin.Float,kotlin.Float,kotlin.Float))(float startAngle, float totalAngle, @Px float thickness)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

## Public methods

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#equals(kotlin.Any))(Object other)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### getStartAngle

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final float [getStartAngle](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#getStartAngle())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The staring angle of the arc in degrees (0 degrees = 12 o'clock position).

### getThickness

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final float [getThickness](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#getThickness())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The thickness of the arc as a fraction of min(boundingRect.width, boundingRect.height).

### getTotalAngle

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final float [getTotalAngle](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#getTotalAngle())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The total angle of the arc on degrees.

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#hashCode())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### hitTest

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final boolean [hitTest](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#hitTest(android.graphics.Rect,kotlin.Float,kotlin.Float))(@NonNull Rect rect, @Px float x, @Px float y)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Detects whether the supplied point falls within the edge complication's arc.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html rect` | The bounding `https://developer.android.com/reference/android/graphics/Rect.html` of the edge complication |
| `@https://developer.android.com/reference/androidx/annotation/Px float x` | The x-coordinate of the point to test in pixels |
| `@https://developer.android.com/reference/androidx/annotation/Px float y` | The y-coordinate of the point to test in pixels |

| Returns |
|---|---|
| `boolean` | Whether or not the point is within the arc |

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/wear/watchface/BoundingArc#toString())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff