getAttentionScore method

Future<double?> getAttentionScore()

Retrieves the current Attention score from the SeeSo SDK.

Use this function to get the current Attention score from the SeeSo SDK. The returned value is a double between 0 and 1, representing the user's attention level.

Note: Before calling this function, ensure that the gaze tracker has been properly initialized and camera permission is granted. Otherwise, a PlatformException may be thrown.

Implementation

Future<double?> getAttentionScore() async {
  return SeeSoPlatform.instance.getAttentionScore();
}