Document

Install

vn-native-2-battery --action=install

Params Description
action install || remove

Lock

VnNativeCore.screen.screen.orientation.lock(type)

Params Description
type portrait | landscape (String)

Unlock

VnNativeCore.screen.screen.orientation.unlock()

Change

VnNativeCore.screen.screen.orientation.addEventListener('change', callback);

Params Description
callback Callback function (Function)