Set up a listener for phone-related operations such as music control, hanging up, and callbacks. The result is returned via the data stream phoneEveStm.

The value data comes from PhoneOperationType and matches it

_blePlugin.phoneEveStm.listen(
  (int event) {
    /// Do something with new state
  })

PhoneOperationType:

valuevalue typevalue description
musicPlayOrPauseintPlay / Pause
musicPreviousintPrevious
musicNextintNext
rejectIncomingintHang up the phone. You can press and hold the trigger on the call alert interface.
volumeUpintTurn up the volume
volumeDownintTurn down the volume
musicPlayintPlay
musicPauseintPause
Last Updated: