# Path.Direction

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Direction

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/graphics/Path.Direction "View this page in Java")  

```
class Direction
```

|---|---|--------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                        |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.graphics.Path.Direction](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#)\> ||
|   | ↳ | [android.graphics.Path.Direction](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#) |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [Path.Direction.CCW](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#ENUM_VALUE:CCW),[Path.Direction.CW](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#ENUM_VALUE:CW) |---------------------------------------------------------------------------------------------------------------------|-------------------| | [Path.Direction.CCW](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#ENUM_VALUE:CCW) | counter-clockwise | | [Path.Direction.CW](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#ENUM_VALUE:CW)   | clockwise         | |

Specifies how closed shapes (e.g. rects, ovals) are oriented when they are added to a path.

## Summary

|                                                        Enum values                                                        ||
|------------------------------------------------------------------------------------------------------------------------|---|
| [CCW](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#ENUM_VALUE:CCW) counter-clockwise |
| [CW](https://developer.android.com/reference/kotlin/android/graphics/Path.Direction#ENUM_VALUE:CW) clockwise           |

## Enum values

### CCW

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val CCW : Path.Direction
```

counter-clockwise  

### CW

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val CW : Path.Direction
```

clockwise