Returns insertion points in bulk for a given line fragment.
- iOS 7.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The character index of one character within the line fragment.
true, returns alternate, rather than primary, insertion points.
true, returns insertion points in display, rather than logical, order.
On output, the positions of the insertion points, in the order specified.
On output, the indexes of the characters corresponding to the returned insertion points.
The number of insertion points returned.
The method allows clients to obtain all insertion points for a line fragment in one call. Each pointer passed in should either be
NULL or else point to sufficient memory to hold as many elements as there are insertion points in the line fragment (which cannot be more than the number of characters + 1). The returned positions indicate a transverse offset relative to the line fragment rectangle's origin. Internal caching is used to ensure that repeated calls to this method for the same line fragment (possibly with differing values for other arguments) are not significantly more expensive than a single call.