ondevicemotionAvailable only in secure contexts. var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;