简体   繁体   English

xamarin表单捕获xamarin表单Windows 8.1中的外部应用程序关闭事件

[英]xamarin forms capture an external application close event in xamarin forms windows 8.1

I'm developing a Xamarin forms application for windows 8.1. 我正在为Windows 8.1开发Xamarin表单应用程序。 I'm looking for the solution where i need to capture the closing event for an external application. 我正在寻找需要捕获外部应用程序关闭事件的解决方案。

eg: i'm opening an pdf in default pdf viewer so, when the user closes the pdf i want to capture that event. 例如:我要在默认的pdf查看器中打开pdf,因此,当用户关闭pdf时,我想捕获该事件。

You cannot get a callback when an external application closes unfortunately (as long as you have not implemented the other application and are not sending some HTTP based notification or such). 不幸的是,当外部应用程序关闭时,您将无法获得回调(只要您尚未实现其他应用程序且未发送基于HTTP的通知等)。 All WinRT apps run in a "silo" so they cannot monitor each other this way. 所有WinRT应用程序均以“独立”运行,因此它们无法通过这种方式相互监视。

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

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