flutter_custom_tabs library

Classes

CustomTabsAnimations
The enter and exit animations for the Custom Tab.
CustomTabsBrowserConfiguration
Configuration options for launching a URL using Custom Tabs on Android.
CustomTabsCloseButton
The configuration for close button on the Custom Tab.
CustomTabsCloseButtonIcons
Build-in close button icons for the Custom Tab.
CustomTabsColorSchemeParams
Contains visual parameters of a Custom Tab that may depend on the color scheme.
CustomTabsColorSchemes
The configuration of a Custom Tab visualization.
CustomTabsOptions
A comprehensive set of options for customizing the appearance and behavior of Custom Tabs when launching a URL.
CustomTabsSession
Represents a session with a Custom Tabs application.
CustomTabsSessionOptions
Options for creating a Custom Tabs session.
CustomTabsSystemAnimations
Build-in enter and exit animations for Custom Tabs.
PartialCustomTabsConfiguration
Configuration for Partial Custom Tabs, which allows Custom Tabs to launch in a reduced size view.
SafariViewControllerOptions
The comprehensive set of options for launching SFSafariViewController by specifying a URL.
SafariViewPrewarmingSession
The session for the prewarming of SFSafariViewController.
SheetPresentationControllerConfiguration
Configuration for presenting SFSafariViewController as a customizable sheet.

Enums

CustomTabsActivityHeightResizeBehavior
Desired height behavior for the Partial Custom Tab.
CustomTabsActivitySideSheetDecorationType
Defines the visual decoration style for Partial Custom Tabs when displayed as a side sheet.
CustomTabsActivitySideSheetPosition
Specifies the position of the Partial Custom Tab side sheet on the screen.
CustomTabsActivitySideSheetRoundedCornersPosition
Specifies which corners of the Partial Custom Tab side sheet should be rounded.
CustomTabsCloseButtonPosition
The position of the close button on the Custom Tab.
CustomTabsColorScheme
Desired color scheme on a Custom Tab.
CustomTabsShareState
The share state that should be applied to the Custom Tab.
SafariViewControllerDismissButtonStyle
Dismiss button style on the navigation bar of SFSafariViewController.
SheetPresentationControllerDetent
An object that represents a height where a sheet naturally rests.
ViewControllerModalPresentationStyle
A view presentation style in which the presented view covers the screen.

Functions

closeCustomTabs() Future<void>
Closes all Custom Tabs that were opened earlier by launchUrl.
invalidateSession(PlatformSession session) Future<void>
Invalidates a session to release resources and properly dispose of it.
launchUrl(Uri url, {bool prefersDeepLink = false, CustomTabsOptions? customTabsOptions, SafariViewControllerOptions? safariVCOptions}) Future<void>
Launches a web URL using a Custom Tab or browser, with various customization options.
mayLaunchUrl(Uri url, {CustomTabsSession? customTabsSession}) Future<SafariViewPrewarmingSession>
Tells the browser of a potential URL that might be launched later, improving performance when the URL is actually launched.
mayLaunchUrls(List<Uri> urls, {CustomTabsSession? customTabsSession}) Future<SafariViewPrewarmingSession>
Tells the browser of potential URLs that might be launched later, improving performance when the URL is actually launched.
warmupCustomTabs({CustomTabsSessionOptions? options}) Future<CustomTabsSession>
Pre-warms the Custom Tabs browser process, potentially improving performance when launching a URL.