Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个位置感知应用程序,它将根据位置打开和关闭铃声和振动,我找不到如何在代码中访问这些功能。
当前的 SDK 无法做到这一点。
正如 Olivier 提到的那样,铃声不能直接访问。当然,您可以直接播放声音,但是当用户更改铃声时,这会变得很棘手。
关于振动,您可以在此处访问。
VibrateController 类 (Microsoft.Devices)