Assembly:/n: Tizen.Applications.WatchApplication.dll<\/p>\n<p>The class that represents the Tizen watch application.<\/p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">WatchApplication<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : CoreApplication, IDisposable<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<p>Inheritance\n: object<\/p>\n<p><a href=https://samsungtizenos.com/"Tizen.Applications.Application.md/">Application/a>/p>/n
AmbientTickType/a>/td>/nAmbientTickType/td>/n/tr>/n/tbody>/n/table>/div>/nWatchTime/a>/td>/nWatchTime/td>/n/tr>/n/tbody>/n/table>/div>/nTimeTickResolution/a>/td>/ntype/td>/n Type of the resolution type.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-2\"><a href=https://samsungtizenos.com/"#content-examples-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">int<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">GetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">out<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">out<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-2\"><a href=https://samsungtizenos.com/"#content-exceptions-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to get the time tick frequency.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L184\">View Source<\/a><\/p>\n<h4 id=\"content-onambientchangedambienteventargs\"><a href=https://samsungtizenos.com/"#content-onambientchangedambienteventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnAmbientChanged(AmbientEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the ambient mode is changed.\nIf base.OnAmbientChanged() is not called, the event 'AmbientChanged' will not be emitted.<\/p>\n<h5 id=\"content-declaration-6\"><a href=https://samsungtizenos.com/"#content-declaration-6\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnAmbientChanged<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientEventArgs<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">mode<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-2\"><a href=https://samsungtizenos.com/"#content-parameters-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.AmbientEventArgs.md/">AmbientEventArgs/a>/td>/n mode/td>/n The received AmbientEventArgs.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L172\">View Source<\/a><\/p>\n<h4 id=\"content-onambientticktimeeventargs\"><a href=https://samsungtizenos.com/"#content-onambientticktimeeventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnAmbientTick(TimeEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the time tick event comes in ambient mode.\nIf base.OnAmbientTick() is not called, the event 'AmbientTick' will not be emitted.<\/p>\n<h5 id=\"content-declaration-7\"><a href=https://samsungtizenos.com/"#content-declaration-7\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">OnAmbientTick<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">TimeEventArgs<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">time<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-3\"><a href=https://samsungtizenos.com/"#content-parameters-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeEventArgs.md/">TimeEventArgs/a>/td>/n time/td>/n The received TimeEventArgs to get time information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L120\">View Source<\/a><\/p>\n<h4 id=\"content-oncreate\"><a href=https://samsungtizenos.com/"#content-oncreate\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnCreate()<\/h4>\n<p>Overrides this method to handle the behavior when the application is launched.\nIf base.OnCreate() is not called, the event 'Created' will not be emitted.<\/p>\n<h5 id=\"content-declaration-8\"><a href=https://samsungtizenos.com/"#content-declaration-8\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">override<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnCreate<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-overrides\"><a href=https://samsungtizenos.com/"#content-overrides\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Overrides<\/h5>\n<p><a href=https://samsungtizenos.com/"Tizen.Applications.CoreApplication.md#Tizen_Applications_CoreApplication_OnCreate\">CoreApplication.OnCreate()<\/a><\/p>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L147\">View Source<\/a><\/p>\n<h4 id=\"content-onpause\"><a href=https://samsungtizenos.com/"#content-onpause\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnPause()<\/h4>\n<p>Overrides this method to handle the behavior when the application is paused.\nIf base.OnPause() is not called, the event 'Paused' will not be emitted.<\/p>\n<h5 id=\"content-declaration-9\"><a href=https://samsungtizenos.com/"#content-declaration-9\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">OnPause<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L136\">View Source<\/a><\/p>\n<h4 id=\"content-onresume\"><a href=https://samsungtizenos.com/"#content-onresume\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnResume()<\/h4>\n<p>Overrides this method to handle the behavior when the application is resumed.\nIf base.OnResume() is not called, the event 'Resumed' will not be emitted.<\/p>\n<h5 id=\"content-declaration-10\"><a href=https://samsungtizenos.com/"#content-declaration-10\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnResume<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L159\">View Source<\/a><\/p>\n<h4 id=\"content-onticktimeeventargs\"><a href=https://samsungtizenos.com/"#content-onticktimeeventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnTick(TimeEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the time tick event comes.\nIf base.OnTick() is not called, the event 'TimeTick' will not be emitted.<\/p>\n<h5 id=\"content-declaration-11\"><a href=https://samsungtizenos.com/"#content-declaration-11\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnTick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeEventArgs<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">time<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-4\"><a href=https://samsungtizenos.com/"#content-parameters-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeEventArgs.md/">TimeEventArgs/a>/td>/n time/td>/n The received TimeEventArgs to get the time information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L102\">View Source<\/a><\/p>\n<h4 id=\"content-runstring\"><a href=https://samsungtizenos.com/"#content-runstring\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Run(string[])<\/h4>\n<p>Runs the UI applications' main loop.<\/p>\n<h5 id=\"content-declaration-12\"><a href=https://samsungtizenos.com/"#content-declaration-12\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">override<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Run<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">string<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[] <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">args<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-5\"><a href=https://samsungtizenos.com/"#content-parameters-5\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>string[]<\/td>\n<td>args<\/td>\n<td>Arguments from the commandline.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-overrides-1\"><a href=https://samsungtizenos.com/"#content-overrides-1\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Overrides<\/h5>\n<p><a href=https://samsungtizenos.com/"Tizen.Applications.CoreApplication.html#Tizen_Applications_CoreApplication_Run_System_String___\">CoreApplication.Run(string[])<\/a><\/p>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L309\">View Source<\/a><\/p>\n<h4 id=\"content-setambientticktypeambientticktype\"><a href=https://samsungtizenos.com/"#content-setambientticktypeambientticktype\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>SetAmbientTickType(AmbientTickType)<\/h4>\n<p>Sets the type of the periodic ambient tick.\nOnAmbientTick will be called for the following settings.\nIf the SetAmbientTickType is not called, the OnAmbientTick will be called every minute.<\/p>\n<h5 id=\"content-declaration-13\"><a href=https://samsungtizenos.com/"#content-declaration-13\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">SetAmbientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">AmbientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">ambientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-6\"><a href=https://samsungtizenos.com/"#content-parameters-6\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.AmbientTickType.md/">AmbientTickType/a>/td>/n ambientTickType/td>/n The type of the ambient tick.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-3\"><a href=https://samsungtizenos.com/"#content-examples-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetAmbientTickType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientTickType<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">.<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">EveryMinute<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-3\"><a href=https://samsungtizenos.com/"#content-exceptions-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to set the ambient tick type.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L352\">View Source<\/a><\/p>\n<h4 id=\"content-settimetickfrequencyint-timetickresolution\"><a href=https://samsungtizenos.com/"#content-settimetickfrequencyint-timetickresolution\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>SetTimeTickFrequency(int, TimeTickResolution)<\/h4>\n<p>Sets the frequency of the time tick.\nOnTick will be called for the following settings.\nIf SetTimeTickFrequency is not called, OnTick will be called every second.<\/p>\n<h5 id=\"content-declaration-14\"><a href=https://samsungtizenos.com/"#content-declaration-14\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">int<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">ticks<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">type<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-7\"><a href=https://samsungtizenos.com/"#content-parameters-7\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>int<\/td>\n<td>ticks<\/td>\n<td>Ticks the number of ticks per given resolution type.<\/td>\n<\/tr>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeTickResolution.md/">TimeTickResolution/a>/td>/n type/td>/n Type of the resolution type.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-4\"><a href=https://samsungtizenos.com/"#content-examples-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">1<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">.<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTicksPerMinute<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-4\"><a href=https://samsungtizenos.com/"#content-exceptions-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to set the time tick frequency.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h2 id=\"content-events\"><a href=https://samsungtizenos.com/"#content-events\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Events<\/h2>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L95\">View Source<\/a><\/p>\n<h4 id=\"content-ambientchanged\"><a href=https://samsungtizenos.com/"#content-ambientchanged\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>AmbientChanged<\/h4>\n<p>Occurs when the ambient mode is changed.<\/p>\n<h5 id=\"content-declaration-15\"><a href=https://samsungtizenos.com/"#content-declaration-15\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">event<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">EventHandler<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\"><<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientEventArgs<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">><\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientChanged<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-event-type\"><a href=https://samsungtizenos.com/"#content-event-type\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Event Type<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.EventHandler<TEventArgs><<a href=https://samsungtizenos.com/"Tizen.Applications.AmbientEventArgs.md/">AmbientEventArgs/a>>/td>/n /td>/n/tr>/n/tbody>/n/table>/div>/n /td>/n/tr>/n/tbody>/n/table>/div>/n /td>/n/tr>/n/tbody>/n/table>/div>/n
We use cookies to ensure the proper functioning of our site, to remember your preferences (such as global messages and release notes), and to analyze traffic. You can change your preferences at any time.
Read our cookie & privacy policy
Public Forum
Public Forum
Employees only. Please sign in with your company account.
WatchTime/a>/td>/nWatchTime/td>/n/tr>/n/tbody>/n/table>/div>/nTimeTickResolution/a>/td>/ntype/td>/n Type of the resolution type.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-2\"><a href=https://samsungtizenos.com/"#content-examples-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">int<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">GetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">out<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">out<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-2\"><a href=https://samsungtizenos.com/"#content-exceptions-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to get the time tick frequency.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L184\">View Source<\/a><\/p>\n<h4 id=\"content-onambientchangedambienteventargs\"><a href=https://samsungtizenos.com/"#content-onambientchangedambienteventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnAmbientChanged(AmbientEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the ambient mode is changed.\nIf base.OnAmbientChanged() is not called, the event 'AmbientChanged' will not be emitted.<\/p>\n<h5 id=\"content-declaration-6\"><a href=https://samsungtizenos.com/"#content-declaration-6\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnAmbientChanged<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientEventArgs<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">mode<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-2\"><a href=https://samsungtizenos.com/"#content-parameters-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.AmbientEventArgs.md/">AmbientEventArgs/a>/td>/n mode/td>/n The received AmbientEventArgs.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L172\">View Source<\/a><\/p>\n<h4 id=\"content-onambientticktimeeventargs\"><a href=https://samsungtizenos.com/"#content-onambientticktimeeventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnAmbientTick(TimeEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the time tick event comes in ambient mode.\nIf base.OnAmbientTick() is not called, the event 'AmbientTick' will not be emitted.<\/p>\n<h5 id=\"content-declaration-7\"><a href=https://samsungtizenos.com/"#content-declaration-7\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">OnAmbientTick<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">TimeEventArgs<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">time<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-3\"><a href=https://samsungtizenos.com/"#content-parameters-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeEventArgs.md/">TimeEventArgs/a>/td>/n time/td>/n The received TimeEventArgs to get time information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L120\">View Source<\/a><\/p>\n<h4 id=\"content-oncreate\"><a href=https://samsungtizenos.com/"#content-oncreate\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnCreate()<\/h4>\n<p>Overrides this method to handle the behavior when the application is launched.\nIf base.OnCreate() is not called, the event 'Created' will not be emitted.<\/p>\n<h5 id=\"content-declaration-8\"><a href=https://samsungtizenos.com/"#content-declaration-8\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">override<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnCreate<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-overrides\"><a href=https://samsungtizenos.com/"#content-overrides\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Overrides<\/h5>\n<p><a href=https://samsungtizenos.com/"Tizen.Applications.CoreApplication.md#Tizen_Applications_CoreApplication_OnCreate\">CoreApplication.OnCreate()<\/a><\/p>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L147\">View Source<\/a><\/p>\n<h4 id=\"content-onpause\"><a href=https://samsungtizenos.com/"#content-onpause\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnPause()<\/h4>\n<p>Overrides this method to handle the behavior when the application is paused.\nIf base.OnPause() is not called, the event 'Paused' will not be emitted.<\/p>\n<h5 id=\"content-declaration-9\"><a href=https://samsungtizenos.com/"#content-declaration-9\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">OnPause<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L136\">View Source<\/a><\/p>\n<h4 id=\"content-onresume\"><a href=https://samsungtizenos.com/"#content-onresume\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnResume()<\/h4>\n<p>Overrides this method to handle the behavior when the application is resumed.\nIf base.OnResume() is not called, the event 'Resumed' will not be emitted.<\/p>\n<h5 id=\"content-declaration-10\"><a href=https://samsungtizenos.com/"#content-declaration-10\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnResume<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L159\">View Source<\/a><\/p>\n<h4 id=\"content-onticktimeeventargs\"><a href=https://samsungtizenos.com/"#content-onticktimeeventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnTick(TimeEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the time tick event comes.\nIf base.OnTick() is not called, the event 'TimeTick' will not be emitted.<\/p>\n<h5 id=\"content-declaration-11\"><a href=https://samsungtizenos.com/"#content-declaration-11\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnTick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeEventArgs<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">time<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-4\"><a href=https://samsungtizenos.com/"#content-parameters-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeEventArgs.md/">TimeEventArgs/a>/td>/n time/td>/n The received TimeEventArgs to get the time information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L102\">View Source<\/a><\/p>\n<h4 id=\"content-runstring\"><a href=https://samsungtizenos.com/"#content-runstring\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Run(string[])<\/h4>\n<p>Runs the UI applications' main loop.<\/p>\n<h5 id=\"content-declaration-12\"><a href=https://samsungtizenos.com/"#content-declaration-12\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">override<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Run<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">string<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[] <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">args<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-5\"><a href=https://samsungtizenos.com/"#content-parameters-5\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>string[]<\/td>\n<td>args<\/td>\n<td>Arguments from the commandline.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-overrides-1\"><a href=https://samsungtizenos.com/"#content-overrides-1\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Overrides<\/h5>\n<p><a href=https://samsungtizenos.com/"Tizen.Applications.CoreApplication.html#Tizen_Applications_CoreApplication_Run_System_String___\">CoreApplication.Run(string[])<\/a><\/p>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L309\">View Source<\/a><\/p>\n<h4 id=\"content-setambientticktypeambientticktype\"><a href=https://samsungtizenos.com/"#content-setambientticktypeambientticktype\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>SetAmbientTickType(AmbientTickType)<\/h4>\n<p>Sets the type of the periodic ambient tick.\nOnAmbientTick will be called for the following settings.\nIf the SetAmbientTickType is not called, the OnAmbientTick will be called every minute.<\/p>\n<h5 id=\"content-declaration-13\"><a href=https://samsungtizenos.com/"#content-declaration-13\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">SetAmbientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">AmbientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">ambientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-6\"><a href=https://samsungtizenos.com/"#content-parameters-6\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.AmbientTickType.md/">AmbientTickType/a>/td>/n ambientTickType/td>/n The type of the ambient tick.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-3\"><a href=https://samsungtizenos.com/"#content-examples-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetAmbientTickType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientTickType<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">.<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">EveryMinute<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-3\"><a href=https://samsungtizenos.com/"#content-exceptions-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to set the ambient tick type.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L352\">View Source<\/a><\/p>\n<h4 id=\"content-settimetickfrequencyint-timetickresolution\"><a href=https://samsungtizenos.com/"#content-settimetickfrequencyint-timetickresolution\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>SetTimeTickFrequency(int, TimeTickResolution)<\/h4>\n<p>Sets the frequency of the time tick.\nOnTick will be called for the following settings.\nIf SetTimeTickFrequency is not called, OnTick will be called every second.<\/p>\n<h5 id=\"content-declaration-14\"><a href=https://samsungtizenos.com/"#content-declaration-14\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">int<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">ticks<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">type<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-7\"><a href=https://samsungtizenos.com/"#content-parameters-7\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>int<\/td>\n<td>ticks<\/td>\n<td>Ticks the number of ticks per given resolution type.<\/td>\n<\/tr>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeTickResolution.md/">TimeTickResolution/a>/td>/n type/td>/n Type of the resolution type.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-4\"><a href=https://samsungtizenos.com/"#content-examples-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">1<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">.<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTicksPerMinute<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-4\"><a href=https://samsungtizenos.com/"#content-exceptions-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to set the time tick frequency.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h2 id=\"content-events\"><a href=https://samsungtizenos.com/"#content-events\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Events<\/h2>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L95\">View Source<\/a><\/p>\n<h4 id=\"content-ambientchanged\"><a href=https://samsungtizenos.com/"#content-ambientchanged\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>AmbientChanged<\/h4>\n<p>Occurs when the ambient mode is changed.<\/p>\n<h5 id=\"content-declaration-15\"><a href=https://samsungtizenos.com/"#content-declaration-15\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">event<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">EventHandler<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\"><<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientEventArgs<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">><\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientChanged<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-event-type\"><a href=https://samsungtizenos.com/"#content-event-type\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Event Type<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.EventHandler<TEventArgs><<a href=https://samsungtizenos.com/"Tizen.Applications.AmbientEventArgs.md/">AmbientEventArgs/a>>/td>/n /td>/n/tr>/n/tbody>/n/table>/div>/n /td>/n/tr>/n/tbody>/n/table>/div>/n /td>/n/tr>/n/tbody>/n/table>/div>/n
We use cookies to ensure the proper functioning of our site, to remember your preferences (such as global messages and release notes), and to analyze traffic. You can change your preferences at any time.
Read our cookie & privacy policy
Public Forum
Public Forum
Employees only. Please sign in with your company account.
TimeTickResolution/a>/td>/ntype/td>/n Type of the resolution type.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-2\"><a href=https://samsungtizenos.com/"#content-examples-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">int<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">GetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">out<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">out<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">tType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-2\"><a href=https://samsungtizenos.com/"#content-exceptions-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to get the time tick frequency.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L184\">View Source<\/a><\/p>\n<h4 id=\"content-onambientchangedambienteventargs\"><a href=https://samsungtizenos.com/"#content-onambientchangedambienteventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnAmbientChanged(AmbientEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the ambient mode is changed.\nIf base.OnAmbientChanged() is not called, the event 'AmbientChanged' will not be emitted.<\/p>\n<h5 id=\"content-declaration-6\"><a href=https://samsungtizenos.com/"#content-declaration-6\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnAmbientChanged<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientEventArgs<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">mode<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-2\"><a href=https://samsungtizenos.com/"#content-parameters-2\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.AmbientEventArgs.md/">AmbientEventArgs/a>/td>/n mode/td>/n The received AmbientEventArgs.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L172\">View Source<\/a><\/p>\n<h4 id=\"content-onambientticktimeeventargs\"><a href=https://samsungtizenos.com/"#content-onambientticktimeeventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnAmbientTick(TimeEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the time tick event comes in ambient mode.\nIf base.OnAmbientTick() is not called, the event 'AmbientTick' will not be emitted.<\/p>\n<h5 id=\"content-declaration-7\"><a href=https://samsungtizenos.com/"#content-declaration-7\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">OnAmbientTick<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">TimeEventArgs<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">time<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-3\"><a href=https://samsungtizenos.com/"#content-parameters-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeEventArgs.md/">TimeEventArgs/a>/td>/n time/td>/n The received TimeEventArgs to get time information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L120\">View Source<\/a><\/p>\n<h4 id=\"content-oncreate\"><a href=https://samsungtizenos.com/"#content-oncreate\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnCreate()<\/h4>\n<p>Overrides this method to handle the behavior when the application is launched.\nIf base.OnCreate() is not called, the event 'Created' will not be emitted.<\/p>\n<h5 id=\"content-declaration-8\"><a href=https://samsungtizenos.com/"#content-declaration-8\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">override<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnCreate<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-overrides\"><a href=https://samsungtizenos.com/"#content-overrides\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Overrides<\/h5>\n<p><a href=https://samsungtizenos.com/"Tizen.Applications.CoreApplication.md#Tizen_Applications_CoreApplication_OnCreate\">CoreApplication.OnCreate()<\/a><\/p>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L147\">View Source<\/a><\/p>\n<h4 id=\"content-onpause\"><a href=https://samsungtizenos.com/"#content-onpause\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnPause()<\/h4>\n<p>Overrides this method to handle the behavior when the application is paused.\nIf base.OnPause() is not called, the event 'Paused' will not be emitted.<\/p>\n<h5 id=\"content-declaration-9\"><a href=https://samsungtizenos.com/"#content-declaration-9\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">OnPause<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L136\">View Source<\/a><\/p>\n<h4 id=\"content-onresume\"><a href=https://samsungtizenos.com/"#content-onresume\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnResume()<\/h4>\n<p>Overrides this method to handle the behavior when the application is resumed.\nIf base.OnResume() is not called, the event 'Resumed' will not be emitted.<\/p>\n<h5 id=\"content-declaration-10\"><a href=https://samsungtizenos.com/"#content-declaration-10\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnResume<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L159\">View Source<\/a><\/p>\n<h4 id=\"content-onticktimeeventargs\"><a href=https://samsungtizenos.com/"#content-onticktimeeventargs\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>OnTick(TimeEventArgs)<\/h4>\n<p>Overrides this method to handle the behavior when the time tick event comes.\nIf base.OnTick() is not called, the event 'TimeTick' will not be emitted.<\/p>\n<h5 id=\"content-declaration-11\"><a href=https://samsungtizenos.com/"#content-declaration-11\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">virtual<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">OnTick<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeEventArgs<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">time<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-4\"><a href=https://samsungtizenos.com/"#content-parameters-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeEventArgs.md/">TimeEventArgs/a>/td>/n time/td>/n The received TimeEventArgs to get the time information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L102\">View Source<\/a><\/p>\n<h4 id=\"content-runstring\"><a href=https://samsungtizenos.com/"#content-runstring\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Run(string[])<\/h4>\n<p>Runs the UI applications' main loop.<\/p>\n<h5 id=\"content-declaration-12\"><a href=https://samsungtizenos.com/"#content-declaration-12\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">override<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Run<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">string<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[] <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">args<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-5\"><a href=https://samsungtizenos.com/"#content-parameters-5\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>string[]<\/td>\n<td>args<\/td>\n<td>Arguments from the commandline.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-overrides-1\"><a href=https://samsungtizenos.com/"#content-overrides-1\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Overrides<\/h5>\n<p><a href=https://samsungtizenos.com/"Tizen.Applications.CoreApplication.html#Tizen_Applications_CoreApplication_Run_System_String___\">CoreApplication.Run(string[])<\/a><\/p>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L309\">View Source<\/a><\/p>\n<h4 id=\"content-setambientticktypeambientticktype\"><a href=https://samsungtizenos.com/"#content-setambientticktypeambientticktype\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>SetAmbientTickType(AmbientTickType)<\/h4>\n<p>Sets the type of the periodic ambient tick.\nOnAmbientTick will be called for the following settings.\nIf the SetAmbientTickType is not called, the OnAmbientTick will be called every minute.<\/p>\n<h5 id=\"content-declaration-13\"><a href=https://samsungtizenos.com/"#content-declaration-13\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#032F62;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#B392F0\">SetAmbientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">AmbientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#032F62;--shiki-dark:#79B8FF\">ambientTickType<\/span><span style=\"color:#032F62;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-6\"><a href=https://samsungtizenos.com/"#content-parameters-6\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.AmbientTickType.md/">AmbientTickType/a>/td>/n ambientTickType/td>/n The type of the ambient tick.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-3\"><a href=https://samsungtizenos.com/"#content-examples-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetAmbientTickType<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientTickType<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">.<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">EveryMinute<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-3\"><a href=https://samsungtizenos.com/"#content-exceptions-3\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to set the ambient tick type.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L352\">View Source<\/a><\/p>\n<h4 id=\"content-settimetickfrequencyint-timetickresolution\"><a href=https://samsungtizenos.com/"#content-settimetickfrequencyint-timetickresolution\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>SetTimeTickFrequency(int, TimeTickResolution)<\/h4>\n<p>Sets the frequency of the time tick.\nOnTick will be called for the following settings.\nIf SetTimeTickFrequency is not called, OnTick will be called every second.<\/p>\n<h5 id=\"content-declaration-14\"><a href=https://samsungtizenos.com/"#content-declaration-14\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#24292E;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">protected<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">int<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">ticks<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">type<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters-7\"><a href=https://samsungtizenos.com/"#content-parameters-7\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Parameters<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>int<\/td>\n<td>ticks<\/td>\n<td>Ticks the number of ticks per given resolution type.<\/td>\n<\/tr>\n<tr>\n<td><a href=https://samsungtizenos.com/"Tizen.Applications.TimeTickResolution.md/">TimeTickResolution/a>/td>/n type/td>/n Type of the resolution type.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-examples-4\"><a href=https://samsungtizenos.com/"#content-examples-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Examples<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">class<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">MyApp<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> : WatchApplication<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">void<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">TestMethod<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">try<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">SetTimeTickFrequency<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">1<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTickResolution<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">.<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">TimeTicksPerMinute<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">catch<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-exceptions-4\"><a href=https://samsungtizenos.com/"#content-exceptions-4\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Exceptions<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.InvalidOperationException<\/td>\n<td>Thrown when failed to set the time tick frequency.<\/td>\n<\/tr>\n<tr>\n<td>System.NotSupportedException<\/td>\n<td>Thrown when the method is not supported.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h2 id=\"content-events\"><a href=https://samsungtizenos.com/"#content-events\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Events<\/h2>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L95\">View Source<\/a><\/p>\n<h4 id=\"content-ambientchanged\"><a href=https://samsungtizenos.com/"#content-ambientchanged\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>AmbientChanged<\/h4>\n<p>Occurs when the ambient mode is changed.<\/p>\n<h5 id=\"content-declaration-15\"><a href=https://samsungtizenos.com/"#content-declaration-15\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Declaration<\/h5>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8;\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">[<\/span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">Obsolete<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">"Deprecated since API10. Will be removed in API12."<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)]<\/span><\/span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">public<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">event<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">EventHandler<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\"><<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientEventArgs<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">><\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientChanged<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-event-type\"><a href=https://samsungtizenos.com/"#content-event-type\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Event Type<\/h5>\n<div class=\"overflow-auto grid table-fixed\" data-table-container=\"data-table-container\"><table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>System.EventHandler<TEventArgs><<a href=https://samsungtizenos.com/"Tizen.Applications.AmbientEventArgs.md/">AmbientEventArgs/a>>/td>/n /td>/n/tr>/n/tbody>/n/table>/div>/n /td>/n/tr>/n/tbody>/n/table>/div>/n /td>/n/tr>/n/tbody>/n/table>/div>/n
We use cookies to ensure the proper functioning of our site, to remember your preferences (such as global messages and release notes), and to analyze traffic. You can change your preferences at any time.
Read our cookie & privacy policy
Public Forum
Public Forum
Employees only. Please sign in with your company account.
We use cookies to ensure the proper functioning of our site, to remember your preferences (such as global messages and release notes), and to analyze traffic. You can change your preferences at any time.
Read our cookie & privacy policy
Public Forum
Public Forum
Employees only. Please sign in with your company account.
We use cookies to ensure the proper functioning of our site, to remember your preferences (such as global messages and release notes), and to analyze traffic. You can change your preferences at any time. Read our cookie & privacy policy