Options for onDisplayChange.
Members
number
# pollIntervalMs Optional
Also re-probe on this interval (covers screen.colorDepth, which has no change event,
and browsers that don't fire media query change events when a window moves screens).
Defaults to 2000 ms when no change listener could be attached, otherwise disabled.
Pass 0 to explicitly disable polling. See https://github.com/cmahnke/hdr-canvas/issues/107.
number
# pollIntervalMs Optional
Also re-probe on this interval (covers screen.colorDepth, which has no change event,
and browsers that don't fire media query change events when a window moves screens).
Defaults to 2000 ms when no change listener could be attached, otherwise disabled.
Pass 0 to explicitly disable polling. See https://github.com/cmahnke/hdr-canvas/issues/107.