urbanairship-core/src/main/java/com/urbanairship/actions/OpenExternalUrlAction.java
@Override
    public boolean acceptsArguments(@NonNull ActionArguments arguments) {
        switch (arguments.getSituation()) {
            case SITUATION_PUSH_OPENED:
            case SITUATION_WEB_VIEW_INVOCATION:
            case SITUATION_MANUAL_INVOCATION:
            case SITUATION_FOREGROUND_NOTIFICATION_ACTION_BUTTON:
            case SITUATION_AUTOMATION:
                if (UriUtils.parse(arguments.getValue().getString()) == null) {
                    return false;
                }

                return UAirship.shared().getWhitelist().isWhitelisted(arguments.getValue().getString(), Whitelist.SCOPE_OPEN_URL);

            case Action.SITUATION_BACKGROUND_NOTIFICATION_ACTION_BUTTON:
            case Action.SITUATION_PUSH_RECEIVED:
            default:
                return false;
        }
    }
/**
     * The open external URL action accepts Strings that can be parsed as URL argument value types.
     *
     * @param arguments The action arguments.
     * @return <code>true</code> if the action can perform with the arguments,
     * otherwise <code>false</code>.
     */
The open external URL action accepts Strings that can be parsed as URL argument value types.
@param arguments The action arguments.
@return true if the action can perform with the arguments,
otherwise false.
The open external URL action accepts Strings that can be parsed as URL argument value types . @param arguments The action arguments . @return true if the action can perform with the arguments otherwise false .
@Override
    public boolean acceptsArguments(@NonNull ActionArguments arguments) {
        switch (arguments.getSituation()) {
            case SITUATION_PUSH_OPENED:
            case SITUATION_WEB_VIEW_INVOCATION:
            case SITUATION_MANUAL_INVOCATION:
            case SITUATION_FOREGROUND_NOTIFICATION_ACTION_BUTTON:
            case SITUATION_AUTOMATION:
                if (UriUtils.parse(arguments.getValue().getString()) == null) {
                    return false;
                }
                return UAirship.shared().getWhitelist().isWhitelisted(arguments.getValue().getString(), Whitelist.SCOPE_OPEN_URL);
            case Action.SITUATION_BACKGROUND_NOTIFICATION_ACTION_BUTTON:
            case Action.SITUATION_PUSH_RECEIVED:
            default:
                return false;
        }
    }
@ Override public boolean acceptsArguments ( @ NonNull ActionArguments arguments ) { switch ( arguments . getSituation ( ) ) { case SITUATION_PUSH_OPENED : case SITUATION_WEB_VIEW_INVOCATION : case SITUATION_MANUAL_INVOCATION : case SITUATION_FOREGROUND_NOTIFICATION_ACTION_BUTTON : case SITUATION_AUTOMATION : if ( UriUtils . parse ( arguments . getValue ( ) . getString ( ) ) == null ) { return false ; } return UAirship . shared ( ) . getWhitelist ( ) . isWhitelisted ( arguments . getValue ( ) . getString ( ) , Whitelist . SCOPE_OPEN_URL ) ; case Action . SITUATION_BACKGROUND_NOTIFICATION_ACTION_BUTTON : case Action . SITUATION_PUSH_RECEIVED : default : return false ; } }
The open external URL action accepts Strings that can be parsed as URL argument value types.
The open external URL action accepts Strings that can be parsed as URL argument value types .