Java Code Examples for com.facebook.react.views.webview.events.TopMessageEvent

The following examples show how to use com.facebook.react.views.webview.events.TopMessageEvent. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public Map getExportedCustomDirectEventTypeConstants () {
    return MapBuilder.of(
        NavigationStateChangeEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onCrosswalkWebViewNavigationStateChange"),
        ErrorEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onCrosswalkWebViewError"),
        LoadFinishedEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onCrosswalkWebViewLoadFinished"),
        ProgressEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onCrosswalkWebViewProgress"),
        TopMessageEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onMessage")
    );
}
 
Example 2
@Override
public Map getExportedCustomDirectEventTypeConstants () {
    return MapBuilder.of(
        NavigationStateChangeEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onCrosswalkWebViewNavigationStateChange"),
        ErrorEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onCrosswalkWebViewError"),
        ProgressEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onCrosswalkWebViewProgress"),
        TopMessageEvent.EVENT_NAME,
        MapBuilder.of("registrationName", "onMessage")
    );
}
 
Example 3
Source Project: react-native-web3-webview   Source File: Web3WebviewManager.java    License: MIT License 4 votes vote down vote up
public void onMessage(String message) {
    dispatchEvent(this, new TopMessageEvent(this.getId(), message));
}
 
Example 4
public void onMessage(String message) {
    eventDispatcher.dispatchEvent(new TopMessageEvent(this.getId(), message));
}
 
Example 5
Source Project: react-native-GPay   Source File: ReactWebViewManager.java    License: MIT License 4 votes vote down vote up
public void onMessage(String message) {
  dispatchEvent(this, new TopMessageEvent(this.getId(), message));
}
 
Example 6
Source Project: react-native-x5   Source File: RNX5WebViewManager.java    License: MIT License 4 votes vote down vote up
public void onMessage(String message) {
    dispatchEvent(this, new TopMessageEvent(this.getId(), message));
}
 
Example 7
Source Project: react-native-webview-crosswalk   Source File: CrosswalkWebView.java    License: MIT License 4 votes vote down vote up
public void onMessage(String message) {
    eventDispatcher.dispatchEvent(new TopMessageEvent(this.getId(), message));
}