getState method
Implementation
@override
Future<FullviewState?> getState() async {
try {
final state = await methodChannel.invokeMethod<String>('getState');
switch(state) {
case "CO_BROWSE_REQUESTED": { return FullviewState.coBrowseRequested; }
case "CO_BROWSE_ACTIVE": { return FullviewState.active; }
case "CO_BROWSE_INVITATION": { return FullviewState.invitation; }
case "IDLE": { return FullviewState.idle; }
default: { return null; }
}
} on PlatformException catch (e) {
throw Exception('Failed to getState: ${e.message}');
}
}