Code example for ValueCallback

Methods: onReceiveValue

0
            } 
        } 
        ThreadUtils.postOnUiThread(new Runnable() {
            @Override 
            public void run() { 
                callback.onReceiveValue(origins);
            } 
        }); 
    } 
 
    private String getOriginKey(String url) {
        String origin = GURLUtils.getOrigin(url);
        if (origin.isEmpty()) {
            return null; 
        } 
 
        return PREF_PREFIX + origin;
    } 
}