requestSimpleWebView method
Future<Result<WebViewResultBase> >
requestSimpleWebView({
- required bool fromSwitchWebview,
- required bool fromSideMenu,
- required bool compact,
- required bool fullscreen,
- required InputUserBase bot,
- String? url,
- String? startParam,
- DataJSONBase? themeParams,
- required String platform,
Request Simple Web View.
ID: 413a3e73.
Implementation
Future<Result<WebViewResultBase>> requestSimpleWebView({
required bool fromSwitchWebview,
required bool fromSideMenu,
required bool compact,
required bool fullscreen,
required InputUserBase bot,
String? url,
String? startParam,
DataJSONBase? themeParams,
required String platform,
}) async {
// Preparing the request.
final request = MessagesRequestSimpleWebView(
fromSwitchWebview: fromSwitchWebview,
fromSideMenu: fromSideMenu,
compact: compact,
fullscreen: fullscreen,
bot: bot,
url: url,
startParam: startParam,
themeParams: themeParams,
platform: platform,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<WebViewResultBase>();
}