Skip to content

v2.6.3

Latest

Choose a tag to compare

@Aaron8052 Aaron8052 released this 23 Aug 03:05
· 11 commits to main since this release

⚠️ 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

游戏音频中断与恢复事件