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
| Method | Return | Description |
|---|---|---|
showPerformanceOverlay(activity) | Boolean | Show overlay. Returns false if permission not granted |
hidePerformanceOverlay() | Unit | Hide the overlay |
isPerformanceOverlayVisible() | Boolean | Check if the overlay is currently visible |
Use canShowFloatingButton(context) to check the SYSTEM_ALERT_WINDOW permission before showing.