Currently this is only available for the iOS silent switch. It does not work with the Android muted states.
Monitor the mute state
In order to be sure that you have the correct mute state registered you must monitor the mute state. Monitoring the mute state periodically starts a process that checks whether mute has been enabled on the device.
You can stop this at any time:
Most Recent Mute state
The most recently detected mute state can be retrieved using the
Listening for changes
Once you are monitoring the mute state, change events will be dispatched. You can
react in your event handlers as you see fit. There are two events,
representing the change to mute and unmuted respectively.