onUserScreenCaptureStopped property
4.9 Screen Sharing Ended Event
reason
Stop Reason - 0: User-initiated stop; 1: Stop due to screen/window closure; 2: Stop due to changes in the screen sharing display (such as interface being disconnected, projection mode changes, etc.)
Implementation
OnUserScreenCaptureStopped onUserScreenCaptureStopped = (int reason) {};