# Stroke

public interface **Stroke**

|---|---|---|
| Known Indirect Subclasses [Ink.Stroke](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/recognition/Ink.Stroke) |---|---| | [Ink.Stroke](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/recognition/Ink.Stroke) | Represents a sequence of touch points between a pen-/finger-down and a pen-/finger-up events. | |||

Represents a sequence of touch points between a pen-/finger-down and a pen-/finger-up
events.

### Nested Class Summary

|---|---|---|---|
| interface | [Stroke.Properties](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke.Properties) || Represents optional properties of a `https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke`, e.g., stroke color and width. |

### Public Method Summary

|---|---|
| abstract [List](https://developer.android.com/reference/java/util/List.html)\<? extends [Point](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Point)\> | [getPointsInGlobalCoordinates](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke#getPointsInGlobalCoordinates())() Returns the list of touch points in global coordinates. |
| abstract [Stroke.Properties](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke.Properties) | [getProperties](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke#getProperties())() Returns optional `https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke.Properties` of a `https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke`. |

## Public Methods

#### public abstract [List](https://developer.android.com/reference/java/util/List.html)\<? extends [Point](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Point)\>
**getPointsInGlobalCoordinates** ()

Returns the list of touch points in global coordinates.

#### public abstract [Stroke.Properties](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke.Properties)
**getProperties** ()

Returns optional `https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke.Properties`
of a `https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/common/Stroke`.

Based on the properties, the stroke can be treated as either a regular ink stroke,
or a special type, like highlighter.