⚠️ Obsolete API
此版本重命名了如下事件,原有的事件将被标记为Obsolete
Audio
event Action OnAudioSessionRouteChangedEvent
Use AudioSessionRouteChangedEvent instead
NativeUI
event Action OnUIAccessibilityBoldTextStatusChange
Use UIAccessibilityBoldTextStatusChange instead
event Action OnUIContentSizeCategoryChange
Use UIContentSizeCategoryChange instead
event Action<UIInterfaceOrientation> OnStatusBarOrientationChanged
Use StatusBarOrientationChanged instead
新增API
Audio
bool SetActive(bool active)
设置AVAudioSession的激活状态。
bool PrefersNoInterruptionsFromSystemAlerts
设置系统铃声时是否中断Audio Session。
bool AudioInterrupted
当前AudioSession是否被中断(游戏处于后台时无法更新状态,可能导致结果不准确)。
event Action<AVAudioSessionInterruptionType> AudioInterruptionEvent
游戏音频中断与恢复事件