onPause method
Pauses the session including camera & audio.
Invoke this method whenever your app goes to background if there is an active session.
This method is only for Android. On iOS will do nothing.
Implementation
Future<void> onPause() async {
try {
return await _openTokHostApi.onPause();
} catch (e) {
rethrow;
}
}