orientation-listener

1.0.5 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i orientation-listener

    Weekly Downloads

    4

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • tjholowaychuk
    • tootallnate