LayoutPoint

struct LayoutPoint

Type that contains the position and timestamp of a typing interaction of the user in a keyboard.

Summary

Initializers
LayoutPoint(point: CGPoint, timestamp: TimeInterval)
LayoutPoint(x: CGFloat, y: CGFloat, timestamp: TimeInterval)
Properties
TimeInterval timestamp
The timestamp of the interaction.
CGFloat x
The x coordinate of the interaction.
CGFloat y
The y coordinate of the interaction.

Initializers

LayoutPoint

init(point: CGPoint, timestamp: TimeInterval)
Parameters
point: CGPoint The x coordinate of the interaction.
timestamp: TimeInterval The timestamp of the interaction.

LayoutPoint

init(x: CGFloat, y: CGFloat, timestamp: TimeInterval)
Parameters
x: Float The x coordinate of the interaction.
y: Float The y coordinate of the interaction.
timestamp: TimeInterval The timestamp of the interaction.

Properties

timestamp

let timestamp: TimeInterval

The timestamp of the interaction.

x

let x: CGFloat

The x coordinate of the interaction.

y

let y: CGFloat

The y coordinate of the interaction.


If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.

Last updated on August 8, 2022