updateSecondaryToolbar method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CustomTabsIntent.Builder.setSecondaryToolbarViews', apiUrl: 'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent.Builder#setSecondaryToolbarViews(android.widget.RemoteViews,int[],android.app.PendingIntent)', note: 'Not available in a Trusted Web Activity.')])
Future<void> updateSecondaryToolbar(
  1. ChromeSafariBrowserSecondaryToolbar secondaryToolbar
)

Sets or updates (if already present) the Remote Views of the secondary toolbar in an existing custom tab session.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • secondaryToolbar: all platforms

Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'CustomTabsIntent.Builder.setSecondaryToolbarViews',
      apiUrl:
          'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent.Builder#setSecondaryToolbarViews(android.widget.RemoteViews,int[],android.app.PendingIntent)',
      note: 'Not available in a Trusted Web Activity.',
    ),
  ],
)
Future<void> updateSecondaryToolbar(
  ChromeSafariBrowserSecondaryToolbar secondaryToolbar,
) {
  throw UnimplementedError(
    'updateSecondaryToolbar is not implemented on the current platform',
  );
}