Statistiques
| Branche: | Révision:

tuto_bindablelayout / BindableLayoutSample / BindableLayoutSample.Android / MainActivity.cs @ 61fbfe25

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

1

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

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

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

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