findAll method
Finds all instances of find on the page and highlights them. Notifies PlatformFindInteractionController.onFindResultReceived
listener.
find
represents the string to find.
NOTE: on Android native WebView, it finds all instances asynchronously. Successive calls to this will cancel any pending searches.
NOTE: on iOS, if InAppWebViewSettings.isFindInteractionEnabled
is true
,
it uses the built-in find interaction native UI,
otherwise this is implemented using CSS and Javascript.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.findAllAsync)
- iOS (if
InAppWebViewSettings.isFindInteractionEnabled
istrue
: Official API - UIFindInteraction.presentFindNavigator with Official API - UIFindInteraction.searchText) - MacOS
Implementation
Future<void> findAll({String? find}) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('find', () => find);
await channel?.invokeMethod('findAll', args);
}