4 <name>Tizen.Applications.WatchApplication</name>
7 <member name="T:Tizen.Applications.CoreBackend.WatchEventType">
9 Class that represents the type of event for backends. This class can be converted from string type.
12 <member name="F:Tizen.Applications.CoreBackend.WatchEventType.TimeTick">
14 Pre-defined event type. "Created"
17 <member name="F:Tizen.Applications.CoreBackend.WatchEventType.AmbientTick">
19 Pre-defined event type. "AmbientTick"
22 <member name="F:Tizen.Applications.CoreBackend.WatchEventType.AmbientChanged">
24 Pre-defined event type. "AmbientChanged"
27 <member name="M:Tizen.Applications.CoreBackend.WatchEventType.#ctor(System.String)">
29 Initializes the WatchEventType class.
31 <param name="name">The name of watch event type.</param>
33 <member name="M:Tizen.Applications.CoreBackend.WatchEventType.op_Implicit(System.String)~Tizen.Applications.CoreBackend.WatchEventType">
35 Converts a string to WatchEventType instance.
38 <member name="T:Tizen.Applications.AmbientEventArgs">
40 Arguments for the event that reaised when the device enters or exits the ambient mode.
43 <member name="P:Tizen.Applications.AmbientEventArgs.Enabled">
45 The received Ambient mode
48 <member name="T:Tizen.Applications.AmbientTickType">
50 Enumeration for Ambient tick type.
53 <member name="F:Tizen.Applications.AmbientTickType.NoTick">
55 No peridoic ambient tick.
58 <member name="F:Tizen.Applications.AmbientTickType.EveryMinute">
63 <member name="F:Tizen.Applications.AmbientTickType.EveryFiveMinutes">
68 <member name="F:Tizen.Applications.AmbientTickType.EveryFiftenMinutes">
73 <member name="F:Tizen.Applications.AmbientTickType.EveryThirtyMinutes">
78 <member name="F:Tizen.Applications.AmbientTickType.EveryHour">
83 <member name="F:Tizen.Applications.AmbientTickType.EveryThreeHours">
88 <member name="F:Tizen.Applications.AmbientTickType.EverySixHours">
93 <member name="F:Tizen.Applications.AmbientTickType.EveryTwelveHours">
98 <member name="F:Tizen.Applications.AmbientTickType.EveryDay">
103 <member name="T:Tizen.Applications.TimeEventArgs">
105 Arguments for the event that reaised when the time tick comes.
108 <member name="P:Tizen.Applications.TimeEventArgs.Time">
110 The received WatchTime.
113 <member name="T:Tizen.Applications.TimeTickResolution">
115 Enumeration for Time tick resolution.
118 <member name="F:Tizen.Applications.TimeTickResolution.TimeTicksPerSecond">
120 1 ~ 60 ticks per second.
123 <member name="F:Tizen.Applications.TimeTickResolution.TimeTicksPerMinute">
125 1 ~ 60 ticks per minute.
128 <member name="F:Tizen.Applications.TimeTickResolution.TimeTicksPerHour">
130 1 ~ 60 ticks per hour.
133 <member name="T:Tizen.Applications.WatchApplication">
135 The class that represents a Tizen watch application.
138 <member name="M:Tizen.Applications.WatchApplication.#ctor">
140 Initialize the WatchApplication class
143 Default backend for Watch application will be used.
146 <member name="M:Tizen.Applications.WatchApplication.#ctor(Tizen.Applications.CoreBackend.ICoreBackend)">
148 Initialize the WatchApplication class
151 If want to change the backend , use this constructor
153 <param name="backend">The backend instance implementing ICoreBackend interface.</param>
155 <member name="F:Tizen.Applications.WatchApplication.Window">
157 Instance for the window
160 <member name="E:Tizen.Applications.WatchApplication.Resumed">
162 Occurs whenever the application is resumed.
165 <member name="E:Tizen.Applications.WatchApplication.Paused">
167 Occurs whenever the application is paused.
170 <member name="E:Tizen.Applications.WatchApplication.TimeTick">
172 Occurs whenever the time tick comes.
175 <member name="E:Tizen.Applications.WatchApplication.AmbientTick">
177 Occurs whenever the time tick comes in ambient mode.
180 <member name="E:Tizen.Applications.WatchApplication.AmbientChanged">
182 Occurs when the ambient mode is changed.
185 <member name="M:Tizen.Applications.WatchApplication.Run(System.String[])">
187 Runs the UI applications' main loop.
189 <param name="args">Arguments from commandline.</param>
191 <member name="M:Tizen.Applications.WatchApplication.OnCreate">
193 Overrides this method if want to handle behavior when the application is launched.
194 If base.OnCreate() is not called, the event 'Created' will not be emitted.
197 <member name="M:Tizen.Applications.WatchApplication.OnResume">
199 Overrides this method if want to handle behavior when the application is resumed.
200 If base.OnResume() is not called, the event 'Resumed' will not be emitted.
203 <member name="M:Tizen.Applications.WatchApplication.OnPause">
205 Overrides this method if want to handle behavior when the application is paused.
206 If base.OnPause() is not called, the event 'Paused' will not be emitted.
209 <member name="M:Tizen.Applications.WatchApplication.OnTick(Tizen.Applications.TimeEventArgs)">
211 Overrides this method if want to handle behavior when the time tick event comes.
212 If base.OnTick() is not called, the event 'TimeTick' will not be emitted.
214 <param name="time">The received TimeEventArgs to get time information.</param>
216 <member name="M:Tizen.Applications.WatchApplication.OnAmbientTick(Tizen.Applications.TimeEventArgs)">
218 Overrides this method if want to handle behavior when the time tick event comes in ambient mode.
219 If base.OnAmbientTick() is not called, the event 'AmbientTick' will not be emitted.
221 <param name="time">The received TimeEventArgs to get time information.</param>
222 <privilege>http://tizen.org/privilege/alarm.set</privilege>
224 <member name="M:Tizen.Applications.WatchApplication.OnAmbientChanged(Tizen.Applications.AmbientEventArgs)">
226 Overrides this method if want to handle behavior when the ambient mode is changed.
227 If base.OnAmbientChanged() is not called, the event 'AmbientChanged' will not be emitted.
229 <param name="mode">The received AmbientEventArgs</param>
231 <member name="M:Tizen.Applications.WatchApplication.GetCurrentTime">
233 Gets the current time
235 <returns>WatchTime</returns>
236 <exception cref="T:System.InvalidOperationException">Thrown when failed to get current time because of invalid parameter.</exception>
237 <exception cref="T:System.OutOfMemoryException">Thrown when failed to get current time because memory is not enough.</exception>
240 class MyApp : WatchApplication
243 public void TestMethod()
248 wt = GetCurrentTime();
258 <member name="M:Tizen.Applications.WatchApplication.GetAmbientTickType">
260 Gets the type of periodic ambient tick.
262 <returns>AmbientTickType</returns>
263 <exception cref="T:System.InvalidOperationException">Thrown when failed to get ambient tick type.</exception>
266 class MyApp : WatchApplication
269 public void TestMethod()
271 AmbientTickType atType;
274 atType = GetAmbientTickType();
284 <member name="M:Tizen.Applications.WatchApplication.SetAmbientTickType(Tizen.Applications.AmbientTickType)">
286 Sets the type of periodic ambient tick.
287 OnAmbientTick will be called following settings.
288 If SetAmbientTickType is not called, OnAmbientTick will be called every minute.
290 <param name="ambientTickType">the type of ambient tick</param>
291 <exception cref="T:System.InvalidOperationException">Thrown when failed to set ambient tick type.</exception>
294 class MyApp : WatchApplication
297 public void TestMethod()
301 SetAmbientTickType(AmbientTickType.EveryMinute);
311 <member name="M:Tizen.Applications.WatchApplication.SetTimeTickFrequency(System.Int32,Tizen.Applications.TimeTickResolution)">
313 Sets the frequency of time tick.
314 OnTick will be called following settings.
315 If SetTimeTickFrequency is not called, OnTick will be called every second.
317 <param name="ticks">Ticks the number of ticks per given resolution type</param>
318 <param name="type">Type of the resolution type</param>
319 <exception cref="T:System.InvalidOperationException">Thrown when failed to set time tick frequency.</exception>
322 class MyApp : WatchApplication
325 public void TestMethod()
329 SetTimeTickFrequency(1, TimeTickResolution.TimeTicksPerMinute);
339 <member name="M:Tizen.Applications.WatchApplication.GetTimeTickFrequency(System.Int32@,Tizen.Applications.TimeTickResolution@)">
341 Gets the frequency fo time tick.
343 <param name="ticks">Ticks the number of ticks per given resolution type</param>
344 <param name="type">Type of the resolution type</param>
345 <exception cref="T:System.InvalidOperationException">Thrown when failed to get time tick frequency.</exception>
348 class MyApp : WatchApplication
351 public void TestMethod()
354 TimeTickResolution tType;
357 GetTimeTickFrequency(out tick, out tType);
367 <member name="T:Tizen.Applications.WatchTime">
369 The information of Watch Time
372 <member name="P:Tizen.Applications.WatchTime.Year">
374 The information of year
377 <member name="P:Tizen.Applications.WatchTime.Month">
379 The information fo month
382 <member name="P:Tizen.Applications.WatchTime.Day">
384 The information of day
387 <member name="P:Tizen.Applications.WatchTime.DayOfWeek">
389 The information of day of week
392 <member name="P:Tizen.Applications.WatchTime.Hour">
394 The information of hour
397 <member name="P:Tizen.Applications.WatchTime.Hour24">
399 The information of hour for 24 hour form
402 <member name="P:Tizen.Applications.WatchTime.Minute">
404 The information of Minute
407 <member name="P:Tizen.Applications.WatchTime.Second">
409 The information of second
412 <member name="P:Tizen.Applications.WatchTime.Millisecond">
414 The information of millisecond
417 <member name="P:Tizen.Applications.WatchTime.TimeZone">
419 The information of timezone
422 <member name="P:Tizen.Applications.WatchTime.UtcTimestamp">
424 The information of UTC time stamp