updateActionButton method
Updates the ChromeSafariBrowserActionButton.icon and ChromeSafariBrowserActionButton.description.
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.
Implementation
Future<void> updateActionButton({
required Uint8List icon,
required String description,
}) => platform.updateActionButton(icon: icon, description: description);