1. Domino Brix
  2. Presenter lifecycle
  3. Reveal & slots

Reveal & attach

  • Resolve the slot via getSlotKey(); if missing, wait for onSlotRegistered.
  • Run onBeforeRevealed() → slot reveal(view)onRevealed().
  • Attachable views (BrixView) notify onAttached()/onDetached(), triggering registerSlots(), onReady(), and onRemoved().

Registering slots dynamically

Override registerSlots() to add presenter-scoped slots; Brix cleans them up during deactivation.

			@Override
protected void registerSlots() {
  registerSlot(AppendElementSlot.of("alerts", alertsElement));
}

		

Multiple reveals?

The presenter guards against duplicate activation. Reveal retries only when the slot becomes available; call reveal() manually if you need to reattach after state changes.

We are a group of passionate people who love what we do

Donate & Support Us