Windows Phone 7 - Events triggered on phone-call-connect and phone-call-disconnect

前端 未结 2 959
不知归路
不知归路 2021-01-22 12:12

I\'m writing an application for Windows Mobile 7 which required information about \"When a voice call was placed\" and \"when a voice call was hanged up or disconnected\". Are t

2条回答
  •  自闭症患者
    2021-01-22 12:23

    While you can't get any information about a specific phone call, if your application is running you can be informed when a call is received (and ended) by using the Obscured and Unobsured events on the page.

    Please note that this will be triggered when ANY piece of UI chrome covers the page. In addition to incoming call notifications, this will also include incoming SMS notifications, alarms, etc.

    These event are an important part of the application lifecycle for some types of apps (typically games) but are often overlooked.

提交回复
热议问题