Code example for ValueCallback

Methods: onReceiveValue

0
    /** Callback for generateMHTML. */ 
    @CalledByNative 
    private static void generateMHTMLCallback( 
            String path, long size, ValueCallback<String> callback) {
        if (callback == null) return;
        callback.onReceiveValue(size < 0 ? null : path);
    } 
 
    @CalledByNative 
    private void onReceivedHttpAuthRequest(AwHttpAuthHandler handler, String host, String realm) {
        mContentsClient.onReceivedHttpAuthRequest(handler, host, realm);
    } 
 
    @CalledByNative 
    public void onFindResultReceived(int activeMatchOrdinal, int numberOfMatches,
            boolean isDoneCounting) {
        mContentsClient.onFindResultReceived(activeMatchOrdinal, numberOfMatches, isDoneCounting);
    } 
 
    // ------------------------------------------------------------------------------------------- 
    // Helper methods