[英]AVSystemController_SystemVolumeDidChangeNotification not giving callback for the first time
我想檢查兩個音量按鈕是否工作正常。 因此,我設置了觀察者AVSystemController_SystemVolumeDidChangeNotification進行檢查。 給出的是volumeCallback方法: 現在的問題是,在第一次安裝應用程序時,在volumeCallb ...
[英]AVSystemController_SystemVolumeDidChangeNotification not giving callback for the first time
我想檢查兩個音量按鈕是否工作正常。 因此,我設置了觀察者AVSystemController_SystemVolumeDidChangeNotification進行檢查。 給出的是volumeCallback方法: 現在的問題是,在第一次安裝應用程序時,在volumeCallb ...
[英]AVSystemController_SystemVolumeDidChangeNotification triggers when device locked
使用iOS 12,我正在觀察AVSystemController_SystemVolumeDidChangeNotification以檢測按下音量來捕獲圖像: 但是,我注意到,至少在iPhone XS和XS Max上,當按下鎖定按鈕(位於設備右側)時,也會觸發該通知。 嘗試四處搜索 ...
[英]Restore ringer volume IOS using avsystemcontroller is not working
我通過使用以下代碼將iPhone鈴聲音量設置為零(它的工作原理)。 我的問題是我想還原,並且使用相同的代碼只是更改音量級別是行不通的。 請提出一種合適的方法。 我試圖將newvolumelevel設置為5 8 10,但是它不起作用。 PS我知道它的私有框架和應用程序將不會被批准 ...
[英]get ringer volume level using AVSystemController in ios
如何使用AVSystemController獲取iphone當前的鈴聲音量 我也試過下面的代碼來檢查音量 但是當我打印/檢查val時,它返回1.00 我也試過下面的代碼 但如果我的手機靜音,它也會返回1.00事件。 我在下面鏈接如何確定iPhone鈴聲的當前級別? ...
[英]AVSystemController to disable iOS System sounds gives not found for architecture i386 error
我想沉默的鈴聲音量。 所以我使用這個鏈接來做到這一點 - 如何禁用iOS系統聲音但是如果我使用代碼: } 它崩潰了 因為返回的值是零。 如果我導入框架等,然后使用此代碼 它沒有運行給我以下錯誤: 有人請指導我出錯的地方。 ...
[英]using AVSystemController in iPhone App
我想以編程方式減少iPhone的鈴聲,因此我知道AVSystemController是可能的,但是我知道,這是一種私有方法。 如果我使用它,蘋果會拒絕該應用程序還是請建議我其他方法 ...
[英]Mute/Silence an iOS device programmatically?
我試圖在我的應用程序中靜音設備的鈴聲,但由於某些原因使用AVSystemController就像在這個答案( 如何禁用iOS系統聲音 )不會讓我一直沉默設備...它把它放到體積為1巴,但不是完全沉默。 我知道它可以完成,可能是使用像AVSystemController這樣的私有API,我知 ...
[英]Detect iPhone Volume Button Up Press?
是否有一個通知,我能聽,會告訴我,當一個iPhone的音量開? 我知道AVSystemController_SystemVolumeDidChangeNotification ,但是僅在調高音量而不是調高音量時才觸發通知是必不可少的。 其次,如何隱藏按下音量調高按鈕時顯示的半透明視圖 ...
[英]How to determine the current level of the iPhone ringer?
我用AVSystemController使iPhone鈴聲沉默,但我不知道如何確定鈴聲的當前水平。 有任何想法嗎? PS是的我知道使用AVSystemController可能會從App Store中刪除應用程序。 這不是問題。 ...