语言

Menu
Sites
Language
About two event deviceorientation and devicemotion

I see this two event deviceorientation and devicemotion in api references. But I still don't understand very clearly the difference between to them.

Could you please provide a simple explanation or paradigm for these. Thanks a lot.

响应

3 回复
Seoghyun Kang

Hello,

 

I think that the following url will be helpful to you.

http://www.html5rocks.com/en/tutorials/device/orientation/?redirect_from_locale=ko

 

It is a good article about the deviceorientation and devicemotion.

Palitsyna

Hello,

Yes, I had the same question. According to the documentation (https://developer.tizen.org/development/tutorials/web-application/w3chtml5supplementary-features/device/deviceorientation-event-specification?langredirect=1), 

Detecting Device Rotation

Use the device orientation event to detect when the user rotates the device.

Detecting Device Acceleration

Use the device motion event to detect when the user accelerates the device.

 

I've also saw video (http://www.downloadtizenapps.com/2015/10/tutorial-device-orientation-on-tizen-see-video.html), where I've heard the following information: 

deviceorientation provides the physical device orientation;

devicemotion is the acceleration of the device.

AVSukhov

Hello,

As i known, this events use different sensor:

deviceorientation - use gyroscope sensor

devicemotion - acceleremeter sensor