setDistanceToTriggerSync method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'SwipeRefreshLayout.setDistanceToTriggerSync', apiUrl: 'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setDistanceToTriggerSync(int)')])
- int distanceToTriggerSync
Set the distance to trigger a sync in dips.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setDistanceToTriggerSync)
Parameters - Officially Supported Platforms/Implementations:
distanceToTriggerSync: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'SwipeRefreshLayout.setDistanceToTriggerSync',
apiUrl:
'https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout#setDistanceToTriggerSync(int)',
),
],
)
Future<void> setDistanceToTriggerSync(int distanceToTriggerSync) {
throw UnimplementedError(
'setDistanceToTriggerSync is not implemented on the current platform',
);
}