Returns array of two points if Path contains only one line; Verb array has two entries: PathVerb#MOVE, PathVerb#LINE. Returns null if Path is not one line. @return Point[2] if Path contains exactly one line, null otherwise @see http
()
| 581 | * @see <a href="https://fiddle.skia.org/c/@Path_isLine">https://fiddle.skia.org/c/@Path_isLine</a> |
| 582 | */ |
| 583 | @Nullable @Contract(pure = true) |
| 584 | public Point[] getAsLine() { |
| 585 | try { |
| 586 | Stats.onNativeCall(); |
| 587 | return _nMaybeGetAsLine(_ptr); |
| 588 | } finally { |
| 589 | ReferenceUtil.reachabilityFence(this); |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | /** |
| 594 | * Return a read-only view into the path's points. |