Mobile

class in UnityEngine

Switch to Manual

Description

This class encapsulates properties and methods to handle audio output thread on iOS/Android.

Static Variables

audioOutputStartedReturns true if audio output thread is working.
muteStateReturns true if current device media volume is 0.
stopAudioOutputOnMuteSet this property to true to make audio output thread automatically stop when device media volume is set to 0 and to start it again when volume is not 0.

Static Functions

StartAudioOutputStarts audio output thread on Android/iOS.
StopAudioOutputStops audio thread on Android/iOS.

Events

OnMuteStateChangedA delegate called whenever the device mute state is changed.