-
public interface OverlayBase interface for overlays.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumOverlay.Target
-
Method Summary
Modifier and Type Method Description abstract voiddrawOn(@NonNull() Overlay.Target target, @NonNull() Canvas canvas)Called for this overlay to draw itself on the specified target and canvas. abstract booleandrawsOn(@NonNull() Overlay.Target target)Called to understand if this overlay would like to draw onto the giventarget or not. abstract voidsetHardwareCanvasEnabled(boolean on)Sets the overlay renderer to lock and capture the hardware canvas in orderto capture hardware accelerated views such as video players abstract booleangetHardwareCanvasEnabled()Returns true if hardware canvas capture is enabled, false by default -
-
Method Detail
-
drawOn
abstract void drawOn(@NonNull() Overlay.Target target, @NonNull() Canvas canvas)
Called for this overlay to draw itself on the specified target and canvas.
- Parameters:
target- targetcanvas- target canvas
-
drawsOn
abstract boolean drawsOn(@NonNull() Overlay.Target target)
Called to understand if this overlay would like to draw onto the giventarget or not. If true is returned, drawOn can becalled at a future time.
- Parameters:
target- the target
-
setHardwareCanvasEnabled
abstract void setHardwareCanvasEnabled(boolean on)
Sets the overlay renderer to lock and capture the hardware canvas in orderto capture hardware accelerated views such as video players
- Parameters:
on- enabled
-
getHardwareCanvasEnabled
abstract boolean getHardwareCanvasEnabled()
Returns true if hardware canvas capture is enabled, false by default
-
-
-
-