canLaunch function

  1. @Deprecated('Use canLaunchUrl instead')
Future<bool> canLaunch(
  1. String urlString
)

Checks whether the specified URL can be handled by some app installed on the device.

On some systems, such as recent versions of Android and iOS, this will always return false unless the application has been configuration to allow querying the system for launch support. See the README for details.

Implementation

@Deprecated('Use canLaunchUrl instead')
Future<bool> canLaunch(String urlString) async {
  return UrlLauncherPlatform.instance.canLaunch(urlString);
}