Package org.mozilla.geckoview
Class OverscrollEdgeEffect
Object
org.mozilla.geckoview.OverscrollEdgeEffect
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Draw the overscroll effect on a Canvas.Get the current invalidatation Runnable.void
setInvalidationCallback
(Runnable runnable) Set a Runnable that acts as a callback to invalidate the overscroll effect (for example, as a response to user fling for example).void
Set the theme to use for overscroll from a given Context.
-
Method Details
-
setTheme
Set the theme to use for overscroll from a given Context.- Parameters:
context
- Context to use for the overscroll theme.
-
setInvalidationCallback
Set a Runnable that acts as a callback to invalidate the overscroll effect (for example, as a response to user fling for example). The Runnbale should schedule a future call todraw(Canvas)
as a result of the invalidation.- Parameters:
runnable
- Invalidation Runnable.- See Also:
-
getInvalidationCallback
Get the current invalidatation Runnable.- Returns:
- Invalidation Runnable.
- See Also:
-
draw
Draw the overscroll effect on a Canvas.- Parameters:
canvas
- Canvas to draw on.
-