blob: f6935cbd882173fa01ea9697b98995a8fec012a8 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pigeon/pigeon.dart';
dartOut: 'lib/src/messages.g.dart',
objcOptions: ObjcOptions(prefix: 'FUL'),
objcHeaderOut: 'ios/Classes/messages.g.h',
objcSourceOut: 'ios/Classes/messages.g.m',
copyrightHeader: 'pigeons/copyright.txt',
abstract class UrlLauncherApi {
/// Returns true if the URL can definitely be launched.
bool canLaunchUrl(String url);
/// Opens the URL externally, returning true if successful.
bool launchUrl(String url, bool universalLinksOnly);
/// Opens the URL in an in-app SFSafariViewController, returning true
/// when it has loaded successfully.
bool openUrlInSafariViewController(String url);
/// Closes the view controller opened by [openUrlInSafariViewController].
void closeSafariViewController();