16c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard/*
26c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * Copyright (C) 2009 The Android Open Source Project
36c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard *
46c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * Licensed under the Apache License, Version 2.0 (the "License");
56c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * you may not use this file except in compliance with the License.
66c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * You may obtain a copy of the License at
76c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard *
86c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard *      http://www.apache.org/licenses/LICENSE-2.0
96c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard *
106c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * Unless required by applicable law or agreed to in writing, software
116c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * distributed under the License is distributed on an "AS IS" BASIS,
126c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
136c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * See the License for the specific language governing permissions and
146c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard * limitations under the License.
156c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard */
166c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard
176c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roardpackage android.webkit;
186c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard
196c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard/**
207351adf76a97b07bb2d777c56e78752cb7834bb0Steve Block * A callback interface used to provide values asynchronously.
216c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard */
220691ad50ca6b7a2968a0b95e1e9bb7228dd47d65Grace Klobapublic interface ValueCallback<T> {
230691ad50ca6b7a2968a0b95e1e9bb7228dd47d65Grace Kloba    /**
247351adf76a97b07bb2d777c56e78752cb7834bb0Steve Block     * Invoked when the value is available.
257351adf76a97b07bb2d777c56e78752cb7834bb0Steve Block     * @param value The value.
260691ad50ca6b7a2968a0b95e1e9bb7228dd47d65Grace Kloba     */
270691ad50ca6b7a2968a0b95e1e9bb7228dd47d65Grace Kloba    public void onReceiveValue(T value);
286c24b4d10223cb522e6bdbf0e334f61e672f4366Nicolas Roard};
29