setActionButton method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CustomTabsSession.setActionButton', apiUrl: 'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent.Builder#setActionButton(android.graphics.Bitmap,%20java.lang.String,%20android.app.PendingIntent,%20boolean)', note: 'Not available in a Trusted Web Activity.')])
- ChromeSafariBrowserActionButton actionButton
Set a custom action button.
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.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'CustomTabsSession.setActionButton',
apiUrl:
'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent.Builder#setActionButton(android.graphics.Bitmap,%20java.lang.String,%20android.app.PendingIntent,%20boolean)',
note: 'Not available in a Trusted Web Activity.',
),
],
)
void setActionButton(ChromeSafariBrowserActionButton actionButton) {
throw UnimplementedError(
'setActionButton is not implemented on the current platform',
);
}