gh-pages / com.nextfaze.devfun.overlay / OverlayManager

OverlayManager

interface OverlayManager (source)

Handles creation, destruction, and visibility of overlays.

See Also

OverlayWindow

OverlayPermissions

Properties

Name Summary
canDrawOverlays abstract val canDrawOverlays: Boolean
Flag indicating if the user has granted Overlay Permissions.

Functions

Name Summary
configureOverlay abstract fun configureOverlay(overlayWindow: OverlayWindow, additionalOptions: List<UiField<*>> = emptyList(), onResetClick: OnClick = { overlayWindow.resetPositionAndState() }): Unit
Show a configuration dialog for an overlay.
createOverlay abstract fun createOverlay(layoutId: Int, name: String, prefsName: String, reason: OverlayReason, onClick: ClickListener? = null, onLongClick: ClickListener? = null, onVisibilityChange: VisibilityListener? = null, onAttachChange: AttachListener? = null, visibilityPredicate: VisibilityPredicate? = null, visibilityScope: VisibilityScope = VisibilityScope.FOREGROUND_ONLY, dock: Dock = Dock.TOP_LEFT, delta: Float = 0f, snapToEdge: Boolean = true, left: Float = 0f, top: Float = 0f, enabled: Boolean = true): OverlayWindow
Creates an overlay window.
destroyOverlay abstract fun destroyOverlay(overlayWindow: OverlayWindow): Unit
Destroy an overlay instance (cleans up any listeners/callbacks/resources/etc).