setAttentionInterval method
Sets the interval for receiving Attention-related events in the SeeSo SDK's UserStatusEvent.
Use this function to adjust the frequency at which Attention-related events are received in the UserStatusEvent stream from the SeeSo SDK.
The interval
parameter determines the time interval, in seconds, between each received
Attention event. The default interval is 30 seconds, and it can be set between 10 to 60 seconds.
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<void> setAttentionInterval(int interval) async {
SeeSoPlatform.instance.setAttentionInterval(interval);
}