Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/orientation-listener

Listen to device orientation changes
https://github.com/component/orientation-listener

Last synced: 13 days ago
JSON representation

Listen to device orientation changes

Awesome Lists containing this project

README

        

# orientation-listener

Listen for device orientation changes.

## Installation

Install with [component(1)](http://component.io):

$ 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