简体   繁体   English

Xamarin.forms 使用 MVVM 的生命周期方法

[英]Xamarin.forms lifecycle methods using MVVM

How can i use app lifecycle methods(or lifecycle methods of an individual page) if my application is structured using MVVM?(is there any way to do this without mvvm cross or other frameworks?) I ran past this problem when i tried to implement a token auth on my app and i wanted to check if the token is valid before the menu opens.如果我的应用程序是使用 MVVM 构建的,我如何使用应用程序生命周期方法(或单个页面的生命周期方法)?(有没有办法在没有 mvvm cross 或其他框架的情况下做到这一点?)当我尝试实现时,我遇到了这个问题我的应用程序上的令牌身份验证,我想在菜单打开之前检查令牌是否有效。

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

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