CameraPosition class

Represents the camera position for Android devices.

This class provides the necessary device information for accurate gaze tracking on Android.

Constructors

CameraPosition({required String modelName, required double screenWidth, required double screenHeight, required double screenOriginX, required double screenOriginY, bool cameraOnLongerAxis = false})
Creates a CameraPosition with the required device information.

Properties

cameraOnLongerAxis → bool
Whether the camera is mounted on the longer side of the device (default is false).
final
hashCode → int
The hash code for this object.
no setterinherited
modelName → String
The model name of the device.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenHeight → double
Screen height in pixels.
final
screenOriginX → double
X-axis distance (mm) from the front camera to screen origin (0, 0).
final
screenOriginY → double
Y-axis distance (mm) from the front camera to screen origin (0, 0).
final
screenWidth → double
Screen width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited