Vij*_*457 6 c# performance xamarin.ios xamarin.android xamarin.forms
我正在开发Xamarin表单(Android和iOS)应用程序并在应用程序启动时检查登录状态,并在用户已登录到应用程序时分配适当的值.此过程需要6秒钟才能在我们的应用程序中加载第一页.我已经按照Xamarin Auth存储用户登录时的凭据.请找到以下过程来存储和检索我在应用程序中使用的登录用户的详细信息.
https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/general/store-credentials/
在App.cs文件的OnStart方法中使用的代码片段:
protected async override void OnStart()
{
LoginType login = DependencyService.Get<ILoginCredentialStorage>().LoginExists();
this.MainPage = new NavigationPage(new HomePage(login));
}
Run Code Online (Sandbox Code Playgroud)
你能否就此建议我减少在应用程序中加载第一页的时间?
问候,
维杰