1 /// Copyright 2016 by Samsung Electronics, Inc.,
3 /// This software is the confidential and proprietary information
4 /// of Samsung Electronics, Inc. ("Confidential Information"). You
5 /// shall not disclose such Confidential Information and shall use
6 /// it only in accordance with the terms of the license agreement
7 /// you entered into with Samsung.
11 using System.Collections.Generic;
14 using System.Threading.Tasks;
15 using Tizen.Internals.Errors;
17 namespace Tizen.Applications
22 public class UIApplication : Application
27 /// <param name="args"></param>
28 public override void Run(string[] args)
32 Interop.Application.UIAppLifecycleCallbacks ops;
33 ops.OnCreate = (data) =>
38 ops.OnTerminate = (data) =>
42 ops.OnAppControl = (appControlHandle, data) =>
44 OnAppControlReceived(new ReceivedAppControl(appControlHandle));
46 ops.OnResume = (data) =>
50 ops.OnPause = (data) =>
55 TizenSynchronizationContext.Initialize();
56 Interop.Application.Main(args.Length, args, ref ops, IntPtr.Zero);
62 public override void Exit()
64 Interop.Application.Exit();
70 protected virtual void OnResume()
77 protected virtual void OnPause()