Xamarin Forms - Close the Application in Andriod and IOS
Close the Application in Andriod and IOS
if (Device.RuntimePlatform == Device.iOS)
{
Thread.CurrentThread.Abort();
}
else if (Device.RuntimePlatform == Device.Android)
{
Android.OS.Process.KillProcess(Android.OS.Process.MyPid());
}
Comments
Post a Comment