// This is the main entry point of the application. static void Main(string[] args) { try { #if DEBUG Console.WriteLine("Starting main application..."); #endif // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. DeviceHardware.HardwareVersion hwVersion = DeviceHardware.Version; #if DEBUG Console.WriteLine("Current Device Version: " + hwVersion); #endif /* TO BE REMOVED - 5.0.6 [AMOB-30] * * if (UIDevice.CurrentDevice.CheckSystemVersion (8, 0)) { * * // Previous issues using WKWebview in 64-bits devices were solved compiling for both 32 and 64 bits * #if DEBUG * Console.WriteLine("Loading Application Delegate (support for iOS8)"); #endif * UIApplication.Main (args, null, "AppDelegate_WKWebView"); * * } else { */ #if DEBUG Console.WriteLine("Loading Application Delegate"); #endif UIApplication.Main(args, null, "AppDelegate_UIWebView"); // } #if DEBUG Console.WriteLine("END main application"); #endif } catch (Exception ex) { #if DEBUG Console.WriteLine("Exception on MAIN Application method: " + ex.Message); Console.WriteLine("Stacktrace ---------------------"); Console.WriteLine(ex.StackTrace); #endif } }
void initialize() { // getting device info to determine whether camera capturing can work. _hardwareVersion = DeviceHardware.Version; if (IsSourceTypeAvailable(UIImagePickerControllerSourceType.Camera)) { SourceType = UIImagePickerControllerSourceType.Camera; } else { SourceType = UIImagePickerControllerSourceType.PhotoLibrary; } ShowsCameraControls = false; AllowsImageEditing = false; }