setFullScreenPresentation method
Set the presentation style for iOS (full screen vs bottom sheet).
This method controls how the chat interface is presented on iOS.
Parameters:
fullScreen- Whether to present as full screen (true) or bottom sheet (false)
Returns true if the presentation style was set successfully, false otherwise.
Implementation
@override
Future<bool> setFullScreenPresentation({required bool fullScreen}) async {
try {
final result = await methodChannel.invokeMethod<bool>('setFullScreenPresentation', <String, bool>{
'fullScreen': fullScreen,
});
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Failed to set full screen presentation: ${e.message}');
return false;
}
}