<tfoot id='eHMIE'></tfoot>
      <bdo id='eHMIE'></bdo><ul id='eHMIE'></ul>
    <legend id='eHMIE'><style id='eHMIE'><dir id='eHMIE'><q id='eHMIE'></q></dir></style></legend>

    1. <i id='eHMIE'><tr id='eHMIE'><dt id='eHMIE'><q id='eHMIE'><span id='eHMIE'><b id='eHMIE'><form id='eHMIE'><ins id='eHMIE'></ins><ul id='eHMIE'></ul><sub id='eHMIE'></sub></form><legend id='eHMIE'></legend><bdo id='eHMIE'><pre id='eHMIE'><center id='eHMIE'></center></pre></bdo></b><th id='eHMIE'></th></span></q></dt></tr></i><div id='eHMIE'><tfoot id='eHMIE'></tfoot><dl id='eHMIE'><fieldset id='eHMIE'></fieldset></dl></div>

    2. <small id='eHMIE'></small><noframes id='eHMIE'>

        iOS 使用音量按钮作为输入

        时间:2023-05-31

          <small id='KLWkq'></small><noframes id='KLWkq'>

          <i id='KLWkq'><tr id='KLWkq'><dt id='KLWkq'><q id='KLWkq'><span id='KLWkq'><b id='KLWkq'><form id='KLWkq'><ins id='KLWkq'></ins><ul id='KLWkq'></ul><sub id='KLWkq'></sub></form><legend id='KLWkq'></legend><bdo id='KLWkq'><pre id='KLWkq'><center id='KLWkq'></center></pre></bdo></b><th id='KLWkq'></th></span></q></dt></tr></i><div id='KLWkq'><tfoot id='KLWkq'></tfoot><dl id='KLWkq'><fieldset id='KLWkq'></fieldset></dl></div>

            <tbody id='KLWkq'></tbody>
          <legend id='KLWkq'><style id='KLWkq'><dir id='KLWkq'><q id='KLWkq'></q></dir></style></legend>

              <bdo id='KLWkq'></bdo><ul id='KLWkq'></ul>

                  <tfoot id='KLWkq'></tfoot>
                  本文介绍了iOS 使用音量按钮作为输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我最近下载了一个应用程序,它使用音量 -"按钮切换值,并使用音量 +"按钮开始/停止视频录制.该应用名为 SloPro,可在应用商店中找到.我认为不允许修改 iPhone 硬件的行为.关于如何做到这一点的任何想法?

                  I've recently downloaded an app that uses the 'Volume -' button to toggle a value, and it uses the 'Volume +' button to start/stop recording of video. The app is called SloPro, and can be found in the app store. I thought it wasn't allowed to modify the behaviour of the iPhone's hardware. Any ideas on how this is done?

                  推荐答案

                  参见Audio Session Services References 了解更多详细信息,但基本上您使用 AudioSessionInitialize 开始一个音频会话.然后使用 AudioSessionSetActive 使其处于活动状态.然后使用 AudioSessionAddPropertyListener 监听音量的变化,您可以在其中传递类型为 AudioSessionPropertyListener 的回调.

                  See the Audio Session Services References for more details, but basically you start an audio session with AudioSessionInitialize. Then you make it active with AudioSessionSetActive. Then listen for changes in the volume with AudioSessionAddPropertyListener where you can pass a callback that has type AudioSessionPropertyListener.

                  查看以下网站以获取示例:http://fredandrandall.com/blog/2011/11/18/taking-control-of-the-volume-buttons-on-ios-like-camera/

                  Check the following website out for an example: http://fredandrandall.com/blog/2011/11/18/taking-control-of-the-volume-buttons-on-ios-like-camera/

                  这篇关于iOS 使用音量按钮作为输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何隐藏&amp;在 SplitView 控制器中取消隐藏主视 下一篇:如何在界面生成器中制作与 4 英寸 iPhone 兼容的

                  相关文章

                  最新文章

                  1. <tfoot id='ypoYZ'></tfoot>

                      <i id='ypoYZ'><tr id='ypoYZ'><dt id='ypoYZ'><q id='ypoYZ'><span id='ypoYZ'><b id='ypoYZ'><form id='ypoYZ'><ins id='ypoYZ'></ins><ul id='ypoYZ'></ul><sub id='ypoYZ'></sub></form><legend id='ypoYZ'></legend><bdo id='ypoYZ'><pre id='ypoYZ'><center id='ypoYZ'></center></pre></bdo></b><th id='ypoYZ'></th></span></q></dt></tr></i><div id='ypoYZ'><tfoot id='ypoYZ'></tfoot><dl id='ypoYZ'><fieldset id='ypoYZ'></fieldset></dl></div>

                      <small id='ypoYZ'></small><noframes id='ypoYZ'>

                    1. <legend id='ypoYZ'><style id='ypoYZ'><dir id='ypoYZ'><q id='ypoYZ'></q></dir></style></legend>

                        <bdo id='ypoYZ'></bdo><ul id='ypoYZ'></ul>