namespace AsReaderSDK4MAUIDemo;

public partial class App : Application
{
	public App()
	{
		InitializeComponent();
        if (!Preferences.ContainsKey("AsReaderSDK4MAUIDemo"))
        {
            Preferences.Set("AsReaderSDK4MAUIDemo", true);
            if (!Preferences.ContainsKey("beep"))
            {
                Preferences.Set("beep", "true");
            }
            if (!Preferences.ContainsKey("vibration"))
            {
                Preferences.Set("vibration", "true");
            }
            if (!Preferences.ContainsKey("selectType"))
            {
                Preferences.Set("selectType", "0");
            }
        }
        NavigationPage navigationPageStart;
        navigationPageStart = new NavigationPage(new MainPage());
        navigationPageStart.BarTextColor = Color.FromRgba(0, 0, 0, 255);
        navigationPageStart.BarBackgroundColor = Color.FromRgba(255, 255, 255, 255);
        MainPage = navigationPageStart;
    }
}

