title: Capacitor v3 Motion api - using AccelListenerEvent properties
body: <p>I am using Capacitor version 3 and I'm trying out the Motion Api.</p>
  <p>In the documentation <a href="https://capacitorjs.com/docs/apis/motion" rel="nofollow noreferrer">here</a>, the AccelListenerEvent comes with some properties which I want to set but there are no examples of how to use this.</p>
  <p>So the part I'm using is addListener(‘orientation’, …)</p>
  <p>I basically want to set the interval.</p>
  <p>I've added this:</p>
  <pre><code>import { Component } from '@angular/core';
  import { PluginListenerHandle } from '@capacitor/core';
  import { Motion, AccelListenerEvent } from '@capacitor/motion';
  
  
  @Component({
    selector: 'app-home',
    templateUrl: 'home.page.html',
    styleUrls: ['home.page.scss'],
  })
  export class HomePage {
  
    accelHandler: PluginListenerHandle;
    accelListenerEvent: AccelListenerEvent;
  
    constructor() {
      this.accelListenerEvent.interval = 10;
    }
  </code></pre>
  <p>But it doesn't like it in the constructor.</p>
  <p>Does anyone have any ideas on how to set these properties?</p>