{
  "api": {
    "name": "MotionPlugin",
    "slug": "motionplugin",
    "docs": "",
    "tags": [],
    "methods": [
      {
        "name": "addListener",
        "signature": "(eventName: 'accel', listenerFunc: AccelListener) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'accel'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "AccelListener"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Add a listener for accelerometer data",
        "complexTypes": [
          "PluginListenerHandle",
          "AccelListener"
        ],
        "slug": "addlisteneraccel-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'orientation', listenerFunc: OrientationListener) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'orientation'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "OrientationListener"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Add a listener for device orientation change (compass heading, etc.)",
        "complexTypes": [
          "PluginListenerHandle",
          "OrientationListener"
        ],
        "slug": "addlistenerorientation-"
      },
      {
        "name": "removeAllListeners",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Remove all the listeners that are attached to this plugin.",
        "complexTypes": [],
        "slug": "removealllisteners"
      }
    ],
    "properties": []
  },
  "interfaces": [
    {
      "name": "PluginListenerHandle",
      "slug": "pluginlistenerhandle",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "remove",
          "tags": [],
          "docs": "",
          "complexTypes": [],
          "type": "() => Promise<void>"
        }
      ]
    },
    {
      "name": "AccelListenerEvent",
      "slug": "accellistenerevent",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "acceleration",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "An object giving the acceleration of the device on the three axis X, Y and Z. Acceleration is expressed in m/s",
          "complexTypes": [
            "Acceleration"
          ],
          "type": "Acceleration"
        },
        {
          "name": "accelerationIncludingGravity",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "An object giving the acceleration of the device on the three axis X, Y and Z with the effect of gravity. Acceleration is expressed in m/s",
          "complexTypes": [
            "Acceleration"
          ],
          "type": "Acceleration"
        },
        {
          "name": "rotationRate",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "An object giving the rate of change of the device's orientation on the three orientation axis alpha, beta and gamma. Rotation rate is expressed in degrees per seconds.",
          "complexTypes": [
            "RotationRate"
          ],
          "type": "RotationRate"
        },
        {
          "name": "interval",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "A number representing the interval of time, in milliseconds, at which data is obtained from the device.",
          "complexTypes": [],
          "type": "number"
        }
      ]
    },
    {
      "name": "Acceleration",
      "slug": "acceleration",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "x",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "The amount of acceleration along the X axis.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "y",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "The amount of acceleration along the Y axis.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "z",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "The amount of acceleration along the Z axis.",
          "complexTypes": [],
          "type": "number"
        }
      ]
    },
    {
      "name": "RotationRate",
      "slug": "rotationrate",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "alpha",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "The amount of rotation around the Z axis, in degrees per second.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "beta",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "The amount of rotation around the X axis, in degrees per second.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "gamma",
          "tags": [
            {
              "text": "1.0.0",
              "name": "since"
            }
          ],
          "docs": "The amount of rotation around the Y axis, in degrees per second.",
          "complexTypes": [],
          "type": "number"
        }
      ]
    }
  ],
  "enums": [],
  "typeAliases": [
    {
      "name": "AccelListener",
      "slug": "accellistener",
      "docs": "",
      "types": [
        {
          "text": "(event: AccelListenerEvent): void",
          "complexTypes": [
            "AccelListenerEvent"
          ]
        }
      ]
    },
    {
      "name": "OrientationListener",
      "slug": "orientationlistener",
      "docs": "",
      "types": [
        {
          "text": "(event: RotationRate): void",
          "complexTypes": [
            "OrientationListenerEvent"
          ]
        }
      ]
    },
    {
      "name": "OrientationListenerEvent",
      "slug": "orientationlistenerevent",
      "docs": "",
      "types": [
        {
          "text": "RotationRate",
          "complexTypes": [
            "RotationRate"
          ]
        }
      ]
    }
  ],
  "pluginConfigs": []
}