onRequestFocus method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebChromeClient.onRequestFocus', apiUrl: 'https://developer.android.com/reference/android/webkit/WebChromeClient#onRequestFocus(android.webkit.WebView)')])
Request display and focus for this WebView. This may happen due to another WebView opening a link in this WebView and requesting that this WebView be displayed.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebChromeClient.onRequestFocus)
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onRequestFocus)
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebChromeClient.onRequestFocus',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebChromeClient#onRequestFocus(android.webkit.WebView)',
),
],
)
void onRequestFocus() {}