[UWP]双卡短信应用程序 [英] [UWP]Dual SIM sms App
问题描述
I am developing an app sending SMS messages. I use SmsDevice class for that purpouse. I get SmsDevice2 instance using
得到SmsDevice2实例
SmsDevice2 _device = SmsDevice2.GetDefault();
我希望用户使用双SIM卡手机可以选择发送消息的SIM卡。我怎样才能做到这一点 ?
I want users using dual SIM phones to be able to choose the SIM the message will be send from. How can I do that ?
在SmsDevice2中有一个名为FromId的方法返回SmsDevice2实例,但在哪里可以找到SIM的ID?
In SmsDevice2 there is a method called FromId returning SmsDevice2 instance, but where to find the Ids of the SIMs?
我找到的另一个合理的方法是GetDeviceSelector,根据文档,它检索可用于枚举SMS设备的类选择字符串。
Another reasonable method I found is the GetDeviceSelector which, according to documentation, retrieves the class selection string that can be used to enumerate SMS devices.
但是如何从中获取SMS设备返回的字符串(类选择字符串)?
But how can I get SMS devices from the returned string (the class selection string)?
问候,
Martin
推荐答案
嗨MartinnSM,
Hi MartinnSM,
我正在研究这个主题 我正在向相关团队确认一些信息,一旦有任何进展,我会在这里更新。
I am working on this thread and I am confirming some information with the related team, I will update it in here once there is any progress.
感谢您的理解。
最诚挚的问候,
Amy Peng
Best Regards,
Amy Peng
这篇关于[UWP]双卡短信应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!