简体   繁体   English

如何检查何时按下音量按钮并覆盖功能?

[英]How to check whenever the volume button was pressed and override the function?

I'm trying to make a application which should run in background and I need to know when is the volume button(-) pressed . 我正在尝试制作一个应在后台运行的应用程序,我需要知道何时按下音量按钮(-)。

If it was pressed then I need to execute the back function ( NavigationService.GoBack(); ) 如果按下它,那么我需要执行后退功能( NavigationService.GoBack();

How can I do that? 我怎样才能做到这一点?

Thanks in advance, 提前致谢,

开发人员无法编辑音频传输控件叠加或覆盖“音量按钮”行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM