Наші добровольці ще не переклали статтю цією мовою: Українська. Долучайтеся й допоможіть це зробити!
Ви також можете прочитати цю статтю іншою мовою: English (US).

The ondeviceproximity property of the Window interface specifies an EventHandler to receive deviceproximity events. These events occur when the device sensor detects that an object becomes closer to or farther from the device.

Syntax

window.onuserproximity = funcRef

Where funcRef is a function to be called when the deviceproximity event occurs. These events are of type DeviceProximityEvent.

Specifications

Specification Status Comment
Proximity Sensor
The definition of 'Proximity Events' in that specification.
Working Draft Initial specification

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
ondeviceproximityChrome No support NoEdge ? Firefox No support ? — 60IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android Full support 15Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

Мітки документа й учасники

Зробили внесок у цю сторінку: mdnwebdocs-bot, mfluehr, wbamberg, fscholz, teoli, cpigat, MHasan, kscarfone, Sheppy, Jeremie
Востаннє оновлена: mdnwebdocs-bot,