attachDirectionChange = listener => {
    eventProvider.attachEvent(DIR_CHANGE, listener);
  }
Attach a callback that will be executed whenever the application calls the "applyDirection" function
@public
@param listener