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 Service : Context
22 public event EventHandler Created;
27 public event EventHandler Started;
32 public event EventHandler Destroyed;
34 internal void OnCreate(AppControl control)
39 Created(this, EventArgs.Empty);
43 internal void OnStart()
47 Started(this, EventArgs.Empty);
51 internal void OnDestroy()
53 if (Destroyed != null)
55 Destroyed(this, EventArgs.Empty);