Lock or unlock device orientation (portrait, landscape, or auto).
Lock or unlock physical screen orientation dynamically at runtime. Useful for locking to landscape during video playback or games, then returning to portrait.
import nativine from 'nativine';
nativine.ui.setOrientation('portrait');
import nativine from 'nativine';
nativine.ui.setOrientation('landscape');
import nativine from 'nativine';
nativine.ui.setOrientation('auto');