Class DynamicCallback<V,P,R>
java.lang.Object
com.pranavpandey.android.dynamic.util.concurrent.DynamicCallback<V,P,R>
- Type Parameters:
V
- The type of the view.P
- The type of the placeholder.R
- The type of the result.
Callback to retrieve the result dynamically.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DynamicCallback
Constructor to initialize an object of this class.- Parameters:
view
- The view to be used.
-
-
Method Details
-
onPlaceholder
This method will be called to retrieve the placeholder before getting the result.- Parameters:
view
- The view used by this callback.- Returns:
- The placeholder from this callback.
-
onResult
This method will be called to retrieve the result from this callback.- Parameters:
view
- The view used by this callback.- Returns:
- The result from this callback.
-
getView
Returns the view used by this callback.- Returns:
- The view used by this callback.
-