getActiveFindSession method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(apiName: 'UIFindInteraction.activeFindSession', apiUrl: 'https://developer.apple.com/documentation/uikit/uifindinteraction/3975825-activefindsession?changes=_7____4_8&language=objc'), MacOSPlatform(), LinuxPlatform(apiName: 'WebKitFindController', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/class.FindController.html'), WindowsPlatform(apiName: 'ICoreWebView2Find', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2find')])
Future<FindSession?> getActiveFindSession()

If there's a currently active find session, returns the active find session.

Officially Supported Platforms/Implementations:

Use the PlatformFindInteractionController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(
      apiName: 'UIFindInteraction.activeFindSession',
      apiUrl:
          'https://developer.apple.com/documentation/uikit/uifindinteraction/3975825-activefindsession?changes=_7____4_8&language=objc',
    ),
    MacOSPlatform(),
    LinuxPlatform(
      apiName: 'WebKitFindController',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/class.FindController.html',
    ),
    WindowsPlatform(
      apiName: 'ICoreWebView2Find',
      apiUrl:
          'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2find',
    ),
  ],
)
Future<FindSession?> getActiveFindSession() {
  throw UnimplementedError(
    'getActiveFindSession is not implemented on the current platform',
  );
}