requestPointerLock method

  1. @SupportedPlatforms.new(platforms: [LinuxPlatform()])
Future<bool> requestPointerLock()

Requests pointer lock for the WebView. Pointer lock is useful for games and immersive applications. Returns true if the request was granted, false otherwise.

Officially Supported Platforms/Implementations:

  • Linux WPE WebKit

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(platforms: [LinuxPlatform()])
Future<bool> requestPointerLock() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.requestPointerLock.name} is not implemented on the current platform',
  );
}