urbanairship-core/src/main/java/com/urbanairship/widget/UAWebViewClient.java
private void runActions(WebView webView, Map<String, List<ActionValue>> arguments) {
        if (arguments == null) {
            return;
        }

        Bundle metadata = new Bundle();
        RichPushMessage message = getMessage(webView);
        if (message != null) {
            metadata.putString(ActionArguments.RICH_PUSH_ID_METADATA, message.getMessageId());
        }

        for (String actionName : arguments.keySet()) {
            for (ActionValue arg : arguments.get(actionName)) {
                actionRunRequestFactory.createActionRequest(actionName)
                                       .setValue(arg)
                                       .setMetadata(metadata)
                                       .setSituation(Action.SITUATION_WEB_VIEW_INVOCATION)
                                       .run(new ActionCompletionCallback() {
                                           @Override
                                           public void onFinish(@NonNull ActionArguments arguments, @NonNull ActionResult result) {
                                               synchronized (this) {
                                                   if (actionCompletionCallback != null) {
                                                       actionCompletionCallback.onFinish(arguments, result);
                                                   }
                                               }
                                           }
                                       });
            }
        }
    }
/**
     * Runs a set of actions for the web view.
     *
     * @param webView The web view.
     * @param arguments Map of action to action arguments to run.
     */
Runs a set of actions for the web view.
@param webView The web view.
@param arguments Map of action to action arguments to run.
Runs a set of actions for the web view . @param webView The web view . @param arguments Map of action to action arguments to run .
private void runActions(WebView webView, Map<String, List<ActionValue>> arguments) {
        if (arguments == null) {
            return;
        }
        Bundle metadata = new Bundle();
        RichPushMessage message = getMessage(webView);
        if (message != null) {
            metadata.putString(ActionArguments.RICH_PUSH_ID_METADATA, message.getMessageId());
        }
        for (String actionName : arguments.keySet()) {
            for (ActionValue arg : arguments.get(actionName)) {
                actionRunRequestFactory.createActionRequest(actionName)
                                       .setValue(arg)
                                       .setMetadata(metadata)
                                       .setSituation(Action.SITUATION_WEB_VIEW_INVOCATION)
                                       .run(new ActionCompletionCallback() {
                                           @Override
                                           public void onFinish(@NonNull ActionArguments arguments, @NonNull ActionResult result) {
                                               synchronized (this) {
                                                   if (actionCompletionCallback != null) {
                                                       actionCompletionCallback.onFinish(arguments, result);
                                                   }
                                               }
                                           }
                                       });
            }
        }
    }
private void runActions ( WebView webView , Map < String , List < ActionValue > > arguments ) { if ( arguments == null ) { return ; } Bundle metadata = new Bundle ( ) ; RichPushMessage message = getMessage ( webView ) ; if ( message != null ) { metadata . putString ( ActionArguments . RICH_PUSH_ID_METADATA , message . getMessageId ( ) ) ; } for ( String actionName : arguments . keySet ( ) ) { for ( ActionValue arg : arguments . get ( actionName ) ) { actionRunRequestFactory . createActionRequest ( actionName ) . setValue ( arg ) . setMetadata ( metadata ) . setSituation ( Action . SITUATION_WEB_VIEW_INVOCATION ) . run ( new ActionCompletionCallback ( ) { @ Override public void onFinish ( @ NonNull ActionArguments arguments , @ NonNull ActionResult result ) { synchronized ( this ) { if ( actionCompletionCallback != null ) { actionCompletionCallback . onFinish ( arguments , result ) ; } } } } ) ; } } }
Runs a set of actions for the web view.
Runs a set of actions for the web view .