requestPointerLock method

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

Future<bool> requestPointerLock() => platform.requestPointerLock();