AndroidChromeCustomTabsOptions class

This class represents all the Android-only ChromeSafariBrowser options available.

Implemented types

Constructors

AndroidChromeCustomTabsOptions({@Deprecated('Use `shareState` instead') bool? addDefaultShareMenuItem, CustomTabsShareState shareState = CustomTabsShareState.SHARE_STATE_DEFAULT, bool showTitle = true, Color? toolbarBackgroundColor, bool enableUrlBarHiding = false, bool instantAppsEnabled = false, String? packageName, bool keepAliveEnabled = false, bool isSingleInstance = false, bool noHistory = false, bool isTrustedWebActivity = false, List<String> additionalTrustedOrigins = const [], TrustedWebActivityDisplayMode? displayMode, TrustedWebActivityScreenOrientation screenOrientation = TrustedWebActivityScreenOrientation.DEFAULT})

Properties

addDefaultShareMenuItem bool?
Use shareState instead.
getter/setter pair
additionalTrustedOrigins List<String>
Sets a list of additional trusted origins that the user may navigate or be redirected to from the starting uri.
getter/setter pair
displayMode TrustedWebActivityDisplayMode?
Sets a display mode of a Trusted Web Activity.
getter/setter pair
enableUrlBarHiding bool
Set to true to enable the url bar to hide as the user scrolls down on the page. The default value is false.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
instantAppsEnabled bool
Set to true to enable Instant Apps. The default value is false.
getter/setter pair
isSingleInstance bool
Set to true to launch the Android activity in singleInstance mode. The default value is false.
getter/setter pair
isTrustedWebActivity bool
Set to true to launch the Custom Tab as a Trusted Web Activity. The default value is false.
getter/setter pair
keepAliveEnabled bool
Set to true to enable Keep Alive. The default value is false.
getter/setter pair
noHistory bool
Set to true to launch the Android intent with the flag FLAG_ACTIVITY_NO_HISTORY. The default value is false.
getter/setter pair
packageName String?
Set an explicit application package name that limits the components this Intent will resolve to. If left to the default value of null, all components in all applications will considered. If non-null, the Intent can only match the components in the given application package.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenOrientation TrustedWebActivityScreenOrientation
Sets a screen orientation. This can be used e.g. to enable the locking of an orientation lock type.
getter/setter pair
shareState CustomTabsShareState
The share state that should be applied to the custom tab. The default value is CustomTabsShareState.SHARE_STATE_DEFAULT.
getter/setter pair
showTitle bool
Set to false if the title shouldn't be shown in the custom tab. The default value is true.
getter/setter pair
toolbarBackgroundColor Color?
Set the custom background color of the toolbar.
getter/setter pair

Methods

copy() AndroidChromeCustomTabsOptions
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic> map) AndroidChromeCustomTabsOptions
override