Révision 0875d625 TestTeoBluetooth/TestTeoBluetooth.Android/MainActivity.cs

Voir les différences:

TestTeoBluetooth/TestTeoBluetooth.Android/MainActivity.cs
6 6
using Android.OS;
7 7
using Xamarin.Forms;
8 8
using TeoTestBluetooth.Services;
9
using TestBLE.Droid.Connection;
10
using TestTeoBluetooth.Connection;
9 11

  
10 12
namespace TeoTestBluetooth.Droid
11 13
{
......
17 19
            base.OnCreate(savedInstanceState);
18 20

  
19 21
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
20
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
21
            DependencyService.RegisterSingleton<IBluetoothService>(new Services.BluetoothService());
22
            Forms.Init(this, savedInstanceState);
23
            DependencyService.Register<IConnectionService, BluetoothConnection>();
24
            DependencyService.Register<IConnectionService, InternConnection>();
22 25
            LoadApplication(new App());
23 26
        }
24 27
        public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)

Formats disponibles : Unified diff