multiple device orientation in cocos2d-x v3.0beta

Hi all! Im new with cocos2d-x and trying to automatically change game orientation when user rotates the device. But I have no idea how to do it.

http://www.cocos2d-x.org/wiki/Device_Orientation <- looks like this method ins’t
supported in 3.0+

Can anyone help me with this issue? Thank you in advance.