vv-screenorientation
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

vv-screenorientation

User can change screen orientation

Install

npm install vv-screenorientation
npx cap sync

API

orientation()

orientation() => Promise<{ type: OrientationType; }>

Returns the screen's current orientation.

Returns: Promise<{ type: any; }>


lock(...)

lock(opts: { orientation: OrientationType; }) => Promise<void>

Locks the screen orientation.

Param Type
opts { orientation: any; }

unlock()

unlock() => Promise<void>

Unlocks the screen's orientation.


addListener('screenOrientationChange', ...)

addListener(eventName: 'screenOrientationChange', listenerFunc: (orientation: { type: OrientationType; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Listens for screen orientation changes.

Param Type
eventName 'screenOrientationChange'
listenerFunc (orientation: { type: any; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

Removes all listeners


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

Readme

Keywords

Package Sidebar

Install

npm i vv-screenorientation

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

21 kB

Total Files

23

Last publish

Collaborators

  • vc-vishalvanani