WormaCeptor

Performance Overlay

Display real-time FPS, Memory, and CPU metrics as a draggable overlay.

Performance Overlay

Show a draggable overlay displaying real-time FPS, Memory, and CPU metrics:

// Show the overlay (requires SYSTEM_ALERT_WINDOW permission)
val shown = WormaCeptorApi.showPerformanceOverlay(activity)

// Check visibility
val isVisible = WormaCeptorApi.isPerformanceOverlayVisible()

// Hide the overlay
WormaCeptorApi.hidePerformanceOverlay()

Methods

MethodReturnDescription
showPerformanceOverlay(activity)BooleanShow overlay. Returns false if permission not granted
hidePerformanceOverlay()UnitHide the overlay
isPerformanceOverlayVisible()BooleanCheck if the overlay is currently visible

Use canShowFloatingButton(context) to check the SYSTEM_ALERT_WINDOW permission before showing.

On this page