Package org.mozilla.geckoview
Interface GeckoResult.OnValueMapper<T,U>
- Type Parameters:
T
- Type of the value delivered viaonValue(T)
U
- Type of the new value returned byonValue(T)
- Enclosing class:
- GeckoResult<T>
public static interface GeckoResult.OnValueMapper<T,U>
An interface used to map
GeckoResult
values.-
Method Summary
-
Method Details
-
onValue
Called when aGeckoResult
is completed with a value. Will be called on the same thread where the GeckoResult was created or on theHandler
provided viaGeckoResult.withHandler(Handler)
.- Parameters:
value
- The value of theGeckoResult
- Returns:
- Value used to complete the next result in the chain. May be null.
- Throws:
Throwable
- Exception used to complete next result in the chain.
-