Skip to content

UIDataOverlay

@interface UIDataOverlay
Package: dev.joid.lib.ui.core.data · Module: core · Source: UIDataOverlay.java

Annotation that makes a UI an overlay, drawn with the screens instead of replacing them.

An overlay opens next to the current screen and stays open when the screen changes. By default it is drawn below the screens and receives no input; render and interaction change that. A UI cannot be both an overlay and a popup.

TypeElementDefaultSummary
booleanactivefalseIf true, the UI is an overlay; the annotation without active = true changes nothing, and dev mode warns.
UIDataOverlayRenderrender@UIDataOverlayRenderWhen the overlay is drawn: see UIDataOverlayRender.
UIDataOverlayInteractioninteraction@UIDataOverlayInteractionWhether the overlay receives the input, and what it lets through: see UIDataOverlayInteraction.

boolean active() default false

If true, the UI is an overlay; the annotation without active = true changes nothing, and dev mode warns.

UIDataOverlayRender render() default @UIDataOverlayRender

When the overlay is drawn: see UIDataOverlayRender.

UIDataOverlayInteraction interaction() default @UIDataOverlayInteraction

Whether the overlay receives the input, and what it lets through: see UIDataOverlayInteraction.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page