Application

Chose application
.NET Native Web Flutter
Chose version
ver. 14.0 ver. 13.0 ver. 12.0 ver. 11.0 ver. 10.0 ver. 9.0 ver. 8.0 ver. 7.0 ver. 6.0 ver. 5.0 ver. 4.0
Choose device
Tizen.Applications/n

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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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/n

CoreApplication/n

WatchApplication/n

Implements/n: System.IDisposable<\/p>\n<h2 id=\"content-constructors\"><a href=https://samsungtizenos.com/"#content-constructors\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Constructors<\/h2>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L37\">View Source<\/a><\/p>\n<h4 id=\"content-watchapplication\"><a href=https://samsungtizenos.com/"#content-watchapplication\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>WatchApplication()<\/h4>\n<p>Initializes the WatchApplication class.<\/p>\n<h5 id=\"content-declaration\"><a href=https://samsungtizenos.com/"#content-declaration\" 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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:#6F42C1;--shiki-dark:#B392F0\">WatchApplication<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-remarks\"><a href=https://samsungtizenos.com/"#content-remarks\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Remarks<\/h5>\n<p>Default backend for the watch application will be used.<\/p>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L50\">View Source<\/a><\/p>\n<h4 id=\"content-watchapplicationicorebackend\"><a href=https://samsungtizenos.com/"#content-watchapplicationicorebackend\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>WatchApplication(ICoreBackend)<\/h4>\n<p>Initializes the WatchApplication class.<\/p>\n<h5 id=\"content-declaration-1\"><a href=https://samsungtizenos.com/"#content-declaration-1\" 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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:#6F42C1;--shiki-dark:#B392F0\">WatchApplication<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">ICoreBackend<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">backend<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-parameters\"><a href=https://samsungtizenos.com/"#content-parameters\" 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.CoreBackend.ICoreBackend.md/">ICoreBackend/nbackend/nThe backend instance implementing the ICoreBackend interface.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h5 id=\"content-remarks-1\"><a href=https://samsungtizenos.com/"#content-remarks-1\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Remarks<\/h5>\n<p>If you want to change the backend, use this constructor.<\/p>\n<h2 id=\"content-fields\"><a href=https://samsungtizenos.com/"#content-fields\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Fields<\/h2>\n<p><a href=https://samsungtizenos.com/"https:////github.com//Samsung//TizenFX//blob//main//src//Tizen.Applications.WatchApplication//Tizen.Applications//WatchApplication.cs//#L60\">View Source<\/a><\/p>\n<h4 id=\"content-window\"><a href=https://samsungtizenos.com/"#content-window\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Window<\/h4>\n<p>Instances for the window.<\/p>\n<h5 id=\"content-declaration-2\"><a href=https://samsungtizenos.com/"#content-declaration-2\" 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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\">Window<\/span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> <\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">Window<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre>\n<h5 id=\"content-field-value\"><a href=https://samsungtizenos.com/"#content-field-value\" class=\"heading-permalink\" aria-hidden=\"true\" title=\"Permalink\">\u00b6<\/a>Field Value<\/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><a href=https://samsungtizenos.com/"ElmSharp.Window.md/">Window/n/n/n/n/n

AmbientTickType/nAmbientTickType/n/n/n/n
WatchTime/nWatchTime/n/n/n/n
TimeTickResolution/ntype/nType 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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/nmode/nThe 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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/ntime/nThe 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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/ntime/nThe 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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/nambientTickType/nThe 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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/ntype/nType 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\">&quot;Deprecated since API10. Will be removed in API12.&quot;<\/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\">&lt;<\/span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">AmbientEventArgs<\/span><span style=\"color:#D73A49;--shiki-dark:#F97583\">&gt;<\/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&lt;TEventArgs&gt;&lt;<a href=https://samsungtizenos.com/"Tizen.Applications.AmbientEventArgs.md/">AmbientEventArgs&gt;/n/n/n/n/n

TimeEventArgs&gt;/n/n/n/n/n

TimeEventArgs&gt;/n/n/n/n/n

For the best experience,
Please visit us from a computer

Copyright © 2026 SAMSUNG. All rights reserved.

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.