Esempio n. 1
0
 public override bool OnKeyDown(Keycode keyCode, KeyEvent events)
 {
     // Exit fullscreen when the user pressed the Back button
     if (keyCode == Keycode.Back)
     {
         if (mPlayerView.Fullscreen)
         {
             mPlayerView.SetFullscreen(false, true);
             return(false);
         }
     }
     return(base.OnKeyDown(keyCode, events));
 }
Esempio n. 2
0
 public override void OnConfigurationChanged(Configuration newConfig)
 {
     // Set fullscreen when the device is rotated to landscape
     mPlayerView.SetFullscreen(newConfig.Orientation == Android.Content.Res.Orientation.Landscape, true);
     base.OnConfigurationChanged(newConfig);
 }