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.
13 namespace Tizen.Applications
18 public abstract class UIController : Controller, IUIContext
20 private bool _isResumed = false;
25 public event EventHandler Resumed;
30 public event EventHandler Paused;
35 public Window Window { get; internal set; }
37 internal Guid TaskId { get; set; }
42 protected internal Page MainPage { get; set; }
44 public string ResolveResourcePath(string res)
46 throw new NotImplementedException();
49 internal override void SendCreate()
51 Window = OnPrepareWindow();
55 internal void SendPause()
62 Paused(this, EventArgs.Empty);
68 internal void SendResume()
75 Resumed(this, EventArgs.Empty);
82 protected virtual Window OnPrepareWindow()
87 protected virtual void OnResume()
91 protected virtual void OnPause()
95 protected override void Finish()
97 Application.StopController(this);