Package org.mozilla.geckoview
Interface GeckoResult.OnValueListener<T,U>
- Type Parameters:
T- Type of the value delivered viaonValue(Object)U- Type of the value for the result returned fromonValue(Object)
- Enclosing class:
- GeckoResult<T>
public static interface GeckoResult.OnValueListener<T,U>
An interface used to deliver values to listeners of a
GeckoResult-
Method Summary
-
Method Details
-
onValue
Called when aGeckoResultis completed with a value. Will be called on the same thread where the GeckoResult was created or on theHandlerprovided viaGeckoResult.withHandler(Handler).- Parameters:
value- The value of theGeckoResult- Returns:
- Result used to complete the next result in the chain. May be null.
- Throws:
Throwable- Exception used to complete next result in the chain.
-