onMessageChannelReady method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CustomTabsCallback.onMessageChannelReady', apiUrl: 'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsCallback#onMessageChannelReady(android.os.Bundle)')])
void onMessageChannelReady()

Called when the PlatformChromeSafariBrowser has requested a postMessage channel through PlatformChromeSafariBrowser.requestPostMessageChannel and the channel is ready for sending and receiving messages on both ends.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'CustomTabsCallback.onMessageChannelReady',
      apiUrl:
          'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsCallback#onMessageChannelReady(android.os.Bundle)',
    ),
  ],
)
void onMessageChannelReady() {}