AndroidChromeCustomTabsOptions class

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

Implemented types

Constructors

AndroidChromeCustomTabsOptions({bool addDefaultShareMenuItem = true, bool showTitle = true, Color? toolbarBackgroundColor, bool enableUrlBarHiding = false, bool instantAppsEnabled = false, String? packageName, bool keepAliveEnabled = false})

Properties

addDefaultShareMenuItem bool
Set to false if you don't want the default share item to the menu. The default value is true.
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
keepAliveEnabled bool
Set to true to enable Keep Alive. 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
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