resumeTimers method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.resumeTimers', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#resumeTimers()'), IOSPlatform(note: 'This method is implemented using JavaScript and it is restricted to just this WebView.'), MacOSPlatform(note: 'This method is implemented using JavaScript and it is restricted to just this WebView.')])
On Android, it resumes all layout, parsing, and JavaScript timers for all WebViews. This will resume dispatching all timers.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.resumeTimers)
- iOS WKWebView:
- This method is implemented using JavaScript and it is restricted to just this WebView.
- macOS WKWebView:
- This method is implemented using JavaScript and it is restricted to just this WebView.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebView.resumeTimers',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebView#resumeTimers()',
),
IOSPlatform(
note:
'This method is implemented using JavaScript and it is restricted to just this WebView.',
),
MacOSPlatform(
note:
'This method is implemented using JavaScript and it is restricted to just this WebView.',
),
],
)
Future<void> resumeTimers() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.resumeTimers.name} is not implemented on the current platform',
);
}