24 Mobile Phone Related Operations
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:
value | value type | value description |
---|---|---|
musicPlayOrPause | int | Play / Pause |
musicPrevious | int | Previous |
musicNext | int | Next |
rejectIncoming | int | Hang up the phone. You can press and hold the trigger on the call alert interface. |
volumeUp | int | Turn up the volume |
volumeDown | int | Turn down the volume |
musicPlay | int | Play |
musicPause | int | Pause |