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

The following examples show how to use com.facebook.react.views.webview.events.TopMessageEvent. 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
Source File: CrosswalkWebViewGroupManager.java    From react-native-crosswalk-webview-plus with MIT License 5 votes vote down vote up
@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
Source File: CrosswalkWebViewGroupManager.java    From react-native-webview-crosswalk with MIT License 5 votes vote down vote up
@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 File: Web3WebviewManager.java    From react-native-web3-webview with MIT License 4 votes vote down vote up
public void onMessage(String message) {
    dispatchEvent(this, new TopMessageEvent(this.getId(), message));
}
 
Example #4
Source File: CrosswalkWebView.java    From react-native-crosswalk-webview-plus with MIT License 4 votes vote down vote up
public void onMessage(String message) {
    eventDispatcher.dispatchEvent(new TopMessageEvent(this.getId(), message));
}
 
Example #5
Source File: ReactWebViewManager.java    From react-native-GPay with MIT License 4 votes vote down vote up
public void onMessage(String message) {
  dispatchEvent(this, new TopMessageEvent(this.getId(), message));
}
 
Example #6
Source File: RNX5WebViewManager.java    From react-native-x5 with MIT License 4 votes vote down vote up
public void onMessage(String message) {
    dispatchEvent(this, new TopMessageEvent(this.getId(), message));
}
 
Example #7
Source File: CrosswalkWebView.java    From react-native-webview-crosswalk with MIT License 4 votes vote down vote up
public void onMessage(String message) {
    eventDispatcher.dispatchEvent(new TopMessageEvent(this.getId(), message));
}