开发者

Position of an imageView based on the volume of the volume button of the device

开发者 https://www.devze.com 2023-01-15 08:28 出处:网络
I want to position an imageView based on the amount of volume of the 开发者_开发知识库device, is it possible to obtain how much sound volume the device (iphone) is actually set to?You will need to wri

I want to position an imageView based on the amount of volume of the 开发者_开发知识库device, is it possible to obtain how much sound volume the device (iphone) is actually set to?


You will need to write a property listener callback function that listens for changes to the kAudioSessionProperty_CurrentHardwareOutputVolume property.

The answer to this question gives an example of writing and using the property listener callback function.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号