Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Listen to device orientation changes
JavaScript Makefile
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

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

Something went wrong with that request. Please try again.