isRefreshing method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.isRefreshing', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#isRefreshing()'), IOSPlatform(apiName: 'UIRefreshControl.isRefreshing', apiUrl: 'https://developer.apple.com/documentation/uikit/uirefreshcontrol/1624844-isrefreshing'), WindowsPlatform(apiName: 'Flutter pull-to-refresh indicator state')])
Returns whether a refresh operation has been triggered and is in progress.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.isRefreshing)
- iOS WKWebView (Official API - UIRefreshControl.isRefreshing)
- Windows WebView2 (Official API - Flutter pull-to-refresh indicator state)
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'SwipeRefreshLayout.isRefreshing',
apiUrl:
'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#isRefreshing()',
),
IOSPlatform(
apiName: 'UIRefreshControl.isRefreshing',
apiUrl:
'https://developer.apple.com/documentation/uikit/uirefreshcontrol/1624844-isrefreshing',
),
WindowsPlatform(apiName: 'Flutter pull-to-refresh indicator state'),
],
)
Future<bool> isRefreshing() {
throw UnimplementedError(
'isRefreshing is not implemented on the current platform',
);
}