GameWebViewHost constructor
const
GameWebViewHost({
- Key? key,
- required GameURLPolicy policy,
- required String html,
- required GameBridge bridge,
- required GameBridgeSession createSession(
- void send(
- String json
- void send(
- required String sdkVersion,
- required void onViewport(
- double width,
- double height,
- GameSafeArea safeArea,
- double keyboardInset,
- required void onDevice(
- GameDeviceInfo info
- required VoidCallback onShown,
- required void onFailure(
- GameFailureReason reason
- required void onUserClose(
- String json
- required void onForeground(
- bool foreground
- bool showMute = false,
- bool showClose = true,
- void onMuteChanged(
- bool muted
Implementation
const GameWebViewHost({
super.key,
required this.policy,
required this.html,
required this.bridge,
required this.createSession,
required this.sdkVersion,
required this.onViewport,
required this.onDevice,
required this.onShown,
required this.onFailure,
required this.onUserClose,
required this.onForeground,
this.showMute = false,
this.showClose = true,
this.onMuteChanged,
});