setSecondaryToolbar method
- @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.')])
- ChromeSafariBrowserSecondaryToolbar secondaryToolbar
Sets the remote views displayed in the secondary toolbar in a custom tab.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsIntent.Builder.setSecondaryToolbarViews):
- Not available in a Trusted Web Activity.
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.',
),
],
)
void setSecondaryToolbar(
ChromeSafariBrowserSecondaryToolbar secondaryToolbar,
) {
throw UnimplementedError(
'setSecondaryToolbar is not implemented on the current platform',
);
}