launchBrowser function
- Uri uri, {
- bool useBrowserSessionOnIOS = false,
KO: 기본 브라우저로 URL 실행
EN: Launch a URL with the default browser
Implementation
Future<void> launchBrowser(Uri uri, {bool useBrowserSessionOnIOS = false}) {
if (uri.scheme != 'http' && uri.scheme != 'https') {
throw KakaoClientException(
ClientErrorCause.notSupported,
'Default browsers only supports URL of http or https scheme.',
);
}
return CommonPlatform.instance.launchUrl(
uri.toString(),
useBrowserSession: useBrowserSessionOnIOS,
);
}