setActionButton method

  1. @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.')])
void setActionButton(
  1. ChromeSafariBrowserActionButton actionButton
)

Set a custom action button.

Officially Supported Platforms/Implementations:

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',
  );
}