跳到主要内容

bn.offDeviceMotionChange

offDeviceMotionChange(cb): void

description Cancels listening device direction change event, parameter is null, then cancels all event monitoring.

example

 bn.offDeviceMotionChange(callback)

Parameters

NameType
cbOffDeviceMotionChangeCallback

Returns

void

OffDeviceMotionChangeCallback

Ƭ OffDeviceMotionChangeCallback: () => void

Type declaration

▸ (): void

Callback function for device orientation change event

Returns

void