Statistiques
| Branche: | Révision:

tuto_bindablelayout / BindableLayoutSample / BindableLayoutSample.Android / MainActivity.cs @ c6214383

Historique | Voir | Annoter | Télécharger (1,197 ko)

1
using System;
2

    
3
using Android.App;
4
using Android.Content.PM;
5
using Android.Runtime;
6
using Android.OS;
7

    
8
namespace BindableLayoutSample.Droid
9
{
10
    [Activity(Label = "BindableLayoutSample", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
11
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
12
    {
13
        protected override void OnCreate(Bundle savedInstanceState)
14
        {
15
            base.OnCreate(savedInstanceState);
16

    
17
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
18
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
19
            LoadApplication(new App());
20
        }
21
        public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
22
        {
23
            Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
24

    
25
            base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
26
        }
27
    }
28
}