protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Platform.Init(this, savedInstanceState); Forms.Init(this, savedInstanceState); Startup.Init(ConfigureServices); _crossPlatApp = new App(); LoadApplication(_crossPlatApp); _nfcAdapter = NfcAdapter.GetDefaultAdapter(this); if (_nfcAdapter == null) { // TODO: Tell the main app that sadness is in our future } if (_nfcAdapter.IsEnabled == false) { // TODO: Tell the main app that sadness is in the future unlessa action is taken. } HandleIntent(Intent); }
public MainPage() { this.InitializeComponent(); this.Loaded += MainPage_Loaded; Startup.Init(ConfigureServices); _crossPlatApp = new Scannit.App(); LoadApplication(_crossPlatApp); }