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.
12 namespace Tizen.Applications
17 public abstract class Controller : Context
23 public enum ControlFlags
33 protected AppControl AppControl { get; private set; }
35 internal virtual void SendCreate()
41 internal virtual void SendStart(AppControl control)
47 internal virtual void SendDestroy()
55 protected virtual void OnCreate()
62 protected virtual void OnStart()
69 protected virtual void OnDestroy()
76 /// <param name="control"></param>
77 /// <param name="flags"></param>
78 protected void StartController(AppControl control, ControlFlags flags = ControlFlags.NewInstance)
80 Application.StartController(this, null, control, flags);
86 /// <param name="controllerType"></param>
87 /// <param name="control"></param>
88 /// <param name="flags"></param>
89 protected void StartController(Type controllerType, AppControl control, ControlFlags flags = ControlFlags.NewInstance)
91 Application.StartController(this, controllerType, control, flags);
94 protected void StopController(Type controllerType)
96 Application.StopController(controllerType);
102 protected virtual void Finish()
104 Application.StopController(GetType());
110 /// <param name="control"></param>
111 /// <param name="destination"></param>
112 protected void SendAppControl(AppControl control, string destination)
114 throw new NotImplementedException();