Skip to content

component/orientation-listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

orientation-listener

Listen for device orientation changes.

Installation

Install with component(1):

$ component install component/orientation-listener

Example

API

Listener()

Initialize a new Listener.

Listener.orientation()

Return the orientation type, "landscape" or "portrait".

Listener.unbind()

Unbind listeners.

License

MIT

About

Listen to device orientation changes

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •