Skip to content

@nhtio/crows-nest

Classes

ClassDescription
CrowsNestCrowsNest is a class which provides the "safe" full screen area that can be used without being cut off by the shape of the display or browser UI elements. including whether or not a virtual keyboard is open.

Interfaces

InterfaceDescription
CrowsNestEventsDescribes the events and the signatures of the callbacks which can be registered for each event.
CrowsNestKeyboardEventDetailThe detail payload for a CROWS_NEST_KEYBOARD_EVENT custom event.
CrowsNestOptionsOptions for configuring a CrowsNest instance.
OffsetDescribes the offset of a surface from the window's viewport i.e. the css fixed position offsets
SurfaceDescribes a rectangular surface

Type Aliases

Type AliasDescription
KeyboardStateDescribes the possible states of the virtual keyboard

Variables

VariableDescription
CROWS_NEST_KEYBOARD_EVENTThe name of the window CustomEvent a consumer can dispatch to push the keyboard state into Crows Nest manually. This is an escape hatch for environments (e.g. a Capacitor / native shell) that can detect the on-screen keyboard more reliably than the browser APIs allow.
CROWS_NEST_MIN_KEYBOARD_BOTTOMThe minimum value for a keyboard bottom offset to be considered open