getAttentionRegion method
Retrieves the currently set region of interest (ROI) for the Attention feature in the SeeSo SDK.
Use this function to get the currently set region of interest (ROI) for the Attention feature in the SeeSo SDK. The returned Rect object represents the area of interest on the view.
Returns:
- The currently set region of interest (ROI) for the Attention feature, or null if not available.
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<Rect?> getAttentionRegion() async {
return SeeSoPlatform.instance.getAttentionRegion();
}