PlatformChromeSafariBrowserMethod enum
List of PlatformChromeSafariBrowser's methods that can be used to check if they are supported or not by the current platform.
Values
- addMenuItem → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.addMenuItem method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs:
- Not available in a Trusted Web Activity.
- iOS SFSafariViewController
Parameters - Officially Supported Platforms/Implementations:
menuItem: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- Android Chrome Custom Tabs:
- addMenuItems → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.addMenuItems method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs:
- Not available in a Trusted Web Activity.
- iOS SFSafariViewController
Parameters - Officially Supported Platforms/Implementations:
menuItems: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- Android Chrome Custom Tabs:
- clearWebsiteData → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.clearWebsiteData method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS SFSafariViewController 16.0+ (Official API - SFSafariViewController.DataStore.clearWebsiteData)
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- close → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.close method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
- iOS SFSafariViewController
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- dispose → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.dispose method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
- iOS SFSafariViewController
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- getMaxToolbarItems → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.getMaxToolbarItems method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- getPackageName → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.getPackageName method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsClient.getPackageName)
Parameters - Officially Supported Platforms/Implementations:
packages: all platformsignoreDefault: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- invalidatePrewarmingToken → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.invalidatePrewarmingToken method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS SFSafariViewController 15.0+ (Official API - SFSafariViewController.PrewarmingToken.invalidate)
Parameters - Officially Supported Platforms/Implementations:
prewarmingToken: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- isAvailable → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.isAvailable method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
- iOS SFSafariViewController
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- isEngagementSignalsApiAvailable → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.isEngagementSignalsApiAvailable method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.isEngagementSignalsApiAvailable)
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- isOpened → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.isOpened method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
- iOS SFSafariViewController
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- launchUrl → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.launchUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
Parameters - Officially Supported Platforms/Implementations:
url: all platformsheaders: all platformsotherLikelyURLs: all platformsreferrer: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- mayLaunchUrl → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.mayLaunchUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.mayLaunchUrl)
Parameters - Officially Supported Platforms/Implementations:
url: all platformsotherLikelyURLs: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- open → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.open method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
- iOS SFSafariViewController
Parameters - Officially Supported Platforms/Implementations:
url: all platformsheaders:- Android Chrome Custom Tabs
otherLikelyURLs:- Android Chrome Custom Tabs
referrer:- Android Chrome Custom Tabs
settings: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- postMessage → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.postMessage method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.postMessage)
Parameters - Officially Supported Platforms/Implementations:
message: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- prewarmConnections → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.prewarmConnections method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS SFSafariViewController 15.0+ (Official API - SFSafariViewController.prewarmConnections)
Parameters - Officially Supported Platforms/Implementations:
URLs: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- requestPostMessageChannel → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.requestPostMessageChannel method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.requestPostMessageChannel)
Parameters - Officially Supported Platforms/Implementations:
sourceOrigin: all platformstargetOrigin: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- setActionButton → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.setActionButton method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.setActionButton):
- Not available in a Trusted Web Activity.
Parameters - Officially Supported Platforms/Implementations:
actionButton: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- Android Chrome Custom Tabs (Official API - CustomTabsSession.setActionButton):
- setSecondaryToolbar → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.setSecondaryToolbar method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsIntent.Builder.setSecondaryToolbarViews):
- Not available in a Trusted Web Activity.
Parameters - Officially Supported Platforms/Implementations:
secondaryToolbar: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- Android Chrome Custom Tabs (Official API - CustomTabsIntent.Builder.setSecondaryToolbarViews):
- updateActionButton → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.updateActionButton method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.setActionButton):
- Not available in a Trusted Web Activity.
Parameters - Officially Supported Platforms/Implementations:
icon: all platformsdescription: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- Android Chrome Custom Tabs (Official API - CustomTabsSession.setActionButton):
- updateSecondaryToolbar → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.updateSecondaryToolbar method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsIntent.Builder.setSecondaryToolbarViews):
- Not available in a Trusted Web Activity.
Parameters - Officially Supported Platforms/Implementations:
secondaryToolbar: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
- Android Chrome Custom Tabs (Official API - CustomTabsIntent.Builder.setSecondaryToolbarViews):
- validateRelationship → const PlatformChromeSafariBrowserMethod
-
Can be used to check if the PlatformChromeSafariBrowser.validateRelationship method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.validateRelationship)
Parameters - Officially Supported Platforms/Implementations:
relation: all platformsorigin: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PlatformChromeSafariBrowserMethod> - A constant List of the values in this enum, in order of their declaration.