Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / dom/src/public-api / onFullscreen

Function: onFullscreen()

onFullscreen(): Stream<boolean>

Defined in: projects/libraries/streamix/dom/src/lib/streams/onFullscreen.ts:19

Creates a reactive stream that emits fullscreen state changes.

Emits true when entering fullscreen and false when exiting.

Behavior:

  • Emits the initial fullscreen state on start.
  • Emits on every fullscreen change.
  • Starts listening on first subscriber.
  • Stops listening when the last subscriber unsubscribes.
  • Supports vendor-prefixed implementations.
  • Safe to import and subscribe in SSR (no-op).
  • Fully compatible with async iteration.

Returns

Stream<boolean>

Released under the GNU AGPL v3 or later.