gh-pages / com.nextfaze.devfun.overlay / OverlayWindow
OverlayWindow
interface OverlayWindow (source)
Overlay windows are used by DevFun to display the loggers DeveloperLogger and DevMenu cog.
See Also
Properties
| Name | Summary | 
|---|---|
| configurationOptions | abstract val configurationOptions: List<UiField<*>>Configuration options for this overlay. | 
| enabled | abstract var enabled: BooleanIf the overlay is enabled. Setting to false will hide it (but not remove it from the window). | 
| hideWhenDialogsPresent | abstract var hideWhenDialogsPresent: BooleanIf disabled this overlay will be visible when dialogs are visible (i.e. when DevMenu opens if true(default) this overlay will be hidden). | 
| inset | abstract var inset: RectInsets the overlay window. For a docked window, a pos | 
| isVisible | abstract val isVisible: BooleanFlag indicating if the overlay is currently visible. | 
| name | abstract val name: StringUser-friendly name. | 
| onAttachListener | abstract var onAttachListener: AttachListener?Callback when overlay is added/removed to the window. | 
| onClickListener | abstract var onClickListener: ClickListener?Callback when user taps the overlay. | 
| onLongClickListener | abstract var onLongClickListener: ClickListener?Callback when user long-presses the overlay (defaults to showing overlay config dialog). | 
| onVisibilityListener | abstract var onVisibilityListener: VisibilityListener?Callback when overlay visibility changes. | 
| prefsName | abstract val prefsName: StringPreferences file name to store non-default state - must be unique. | 
| reason | abstract val reason: OverlayReasonRendered only if the user has not granted overlay permissions. | 
| snapToEdge | abstract var snapToEdge: BooleanIf enabled the overlay will snap to the closest edge of the window. If disabled it can be moved anywhere and will only snap if it leaves the windows’s display bounds. | 
| view | abstract val view: ViewThe overlay’s view. | 
| visibilityScope | abstract var visibilityScope: VisibilityScopeDetermines when the overlay can be visible. | 
Functions
| Name | Summary | 
|---|---|
| addToWindow | abstract fun addToWindow(): UnitAdd this overlay to the window. | 
| dispose | abstract fun dispose(): UnitClean up listeners and callbacks of this window. | 
| removeFromWindow | abstract fun removeFromWindow(): UnitRemove this overlay from the window. | 
| resetPositionAndState | abstract fun resetPositionAndState(): UnitReset the position and state to its initial default values and clear its preferences. |