开发者

How to call method on previous page?

开发者 https://www.devze.com 2023-04-09 14:01 出处:网络
is there any way to call method or set propery of the previous page in the stack? Say I started a thread in the A page, then navigated to page B, now my application is g开发者_如何学Coing to be deacti

is there any way to call method or set propery of the previous page in the stack? Say I started a thread in the A page, then navigated to page B, now my application is g开发者_如何学Coing to be deactivated and I want to take care of the thread started in the page A, I want to call a method of A that will save thread job's some parameters. Thank you.


You cannot call a method on a previous page.

You should be deactivating the thread when you leave page A. If that doesn't work for your application, then the thread is an application-level feature and should be created/deactivated in Application class.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号