Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DevicePixelRatioObserver

Instances of DevicePixelRatioObserver can be registered with a DevicePixelRatioMonitor to receive callbacks for a change in the HTML window's device pixel ratio.

Hierarchy

  • DevicePixelRatioObserver

Implemented by

Index

Methods

devicePixelRatioChanged

  • devicePixelRatioChanged(newDevicePixelRatio: number): void
  • Called when the device pixel ratio monitor detects a change in the HTML window's device pixel ratio. This can happen if the window is dragged to a monitor with a different hi-dpi characteristics.

    Parameters

    • newDevicePixelRatio: number

    Returns void

Generated using TypeDoc