| | |
| | | { |
| | | UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; |
| | | } |
| | | |
| | | [Export("application:shouldAllowExtensionPointIdentifier:")] |
| | | public override bool ShouldAllowExtensionPointIdentifier(UIApplication application, NSString extensionPointIdentifier) |
| | | { |
| | | //if (extensionPointIdentifier == UIApplicationKeyboardExtensionPointIdentifier) |
| | | //{ |
| | | // return false; |
| | | //} |
| | | return true; |
| | | |
| | | } |
| | | |
| | | public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken) |
| | | { |
| | |
| | | // Shared.IOS.HDLFVSDK.Video.FVapplicationDidBecomeActive(application); |
| | | //} |
| | | Console.WriteLine("OnActivated"); |
| | | |
| | | base.OnActivated(application); |
| | | //HDL_ON.DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | | |
| | |
| | | /// </summary> |
| | | void SetCurrentLanguage() |
| | | { |
| | | if (string.IsNullOrEmpty(OnAppConfig.Instance.SetLanguage)) |
| | | { |
| | | //if (string.IsNullOrEmpty(OnAppConfig.Instance.SetLanguage)) |
| | | //{ |
| | | if (NSLocale.PreferredLanguages[0].Contains("zh-")) |
| | | { |
| | | Language.CurrentLanguage = "Chinese"; |
| | | } |
| | | else if (NSLocale.PreferredLanguages[0].Contains("cs-")) |
| | | { |
| | | Language.CurrentLanguage = "Czech"; |
| | | } |
| | | //else if (NSLocale.PreferredLanguages[0].Contains("cs-")) |
| | | //{ |
| | | // Language.CurrentLanguage = "Czech"; |
| | | //} |
| | | else if (NSLocale.PreferredLanguages[0].Contains("ru-")) |
| | | { |
| | | Language.CurrentLanguage = "russian"; |
| | |
| | | { |
| | | Language.CurrentLanguage = "Spanish"; |
| | | } |
| | | //else if(NSLocale.PreferredLanguages[0].Contains("uk-")){ |
| | | // Language.CurrentLanguage = "Ukraine"; |
| | | //} |
| | | else |
| | | { |
| | | Language.CurrentLanguage = "English"; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | Language.CurrentLanguage = OnAppConfig.Instance.SetLanguage; |
| | | } |
| | | //} |
| | | //else |
| | | //{ |
| | | // Language.CurrentLanguage = OnAppConfig.Instance.SetLanguage; |
| | | //} |
| | | } |
| | | |
| | | public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) |
| | |
| | | Console.WriteLine("111111111111"); |
| | | SetCurrentLanguage(); |
| | | //Shared.Application.FontSize = 12; |
| | | Bugly.Bugly.StartWithAppId("1dc40c170a"); |
| | | //Bugly.Bugly.StartWithAppId("1dc40c170a"); |
| | | //取消EditText默认密码输入方式 |
| | | //Shared.Application.IsEditTextContentTypePassword = false; |
| | | //默认使用苹方字体 |
| | |
| | | //{ |
| | | // //RemoteInfo.Current.ReadMsgList(true); |
| | | //} |
| | | try |
| | | { |
| | | UMSdk.HDLUMSDK.InitUMSDKWithAppKey("61d56642e0f9bb492bbc3e72", "IOS"); |
| | | } |
| | | catch(Exception ex) |
| | | { |
| | | Console.WriteLine("启动友盟SDK异常:"+ex.Message); |
| | | } |
| | | |
| | | Console.WriteLine("FinishedLaunching"); |
| | | return true; |