Created
November 20, 2019 22:46
-
-
Save icebeam7/f2b53b87035b662653fcd882e5e8266c to your computer and use it in GitHub Desktop.
DemoCamara: MainApplication.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Android.App; | |
using Android.Runtime; | |
using Plugin.CurrentActivity; | |
namespace DemoCamara.Droid | |
{ | |
#if DEBUG | |
[Application(Debuggable = true)] | |
#else | |
[Application(Debuggable = false)] | |
#endif | |
public class MainApplication : Application | |
{ | |
public MainApplication(IntPtr handle, JniHandleOwnership transer) | |
: base(handle, transer) | |
{ | |
} | |
public override void OnCreate() | |
{ | |
base.OnCreate(); | |
CrossCurrentActivity.Current.Init(this); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment