onMessageChannelReady method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CustomTabsCallback.onMessageChannelReady', apiUrl: 'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsCallback#onMessageChannelReady(android.os.Bundle)')])
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:
- Android WebView (Official API - CustomTabsCallback.onMessageChannelReady)
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() {}