Show / Hide Table of Contents

    Class WatchApplication

    Deprecated since API10. Will be removed in API12.

    Definition

    Namespace:
    Tizen.Applications
    Assembly:
    Tizen.Applications.WatchApplication.dll
    API Level:
    4

    The class that represents the Tizen watch application.

    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public class WatchApplication : CoreApplication, IDisposable
    Inheritance
    Object
    Application
    CoreApplication
    WatchApplication
    Implements
    IDisposable

    Constructors

    View Source

    WatchApplication()

    Deprecated since API10. Will be removed in API12.

    Initializes the WatchApplication class.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public WatchApplication()
    Remarks

    Default backend for the watch application will be used.

    API Level: 4
    View Source

    WatchApplication(ICoreBackend)

    Deprecated since API10. Will be removed in API12.

    Initializes the WatchApplication class.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public WatchApplication(ICoreBackend backend)
    Parameters
    Type Name Description
    ICoreBackend backend

    The backend instance implementing the ICoreBackend interface.

    Remarks

    If you want to change the backend, use this constructor.

    API Level: 4

    Fields

    View Source

    Window

    Deprecated since API10. Will be removed in API12.

    Instances for the window.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected Window Window
    Field Value
    Type Description
    Window
    API Level: 4

    Methods

    View Source

    GetAmbientTickType()

    Deprecated since API10. Will be removed in API12.

    Gets the type of the periodic ambient tick.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected AmbientTickType GetAmbientTickType()
    Returns
    Type Description
    AmbientTickType

    AmbientTickType

    Examples
    class MyApp : WatchApplication
    {
        ...
        public void TestMethod()
        {
            AmbientTickType atType;
            try
            {
                atType = GetAmbientTickType();
            }
            catch
            {
            }
        }
    }
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when failed to get the ambient tick type.

    NotSupportedException

    Thrown when the method is not supported.

    API Level: 4
    Feature: http://tizen.org/feature/watch_app
    View Source

    GetCurrentTime()

    Deprecated since API10. Will be removed in API12.

    Gets the current time.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected WatchTime GetCurrentTime()
    Returns
    Type Description
    WatchTime

    WatchTime

    Examples
    class MyApp : WatchApplication
    {
        ...
        public void TestMethod()
        {
            WatchTime wt;
            try
            {
                wt = GetCurrentTime();
            }
            catch
            {
            }
        }
    }
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when failed to get the current time because of an invalid parameter.

    OutOfMemoryException

    Thrown when failed to get the current time because the memory is not enough.

    NotSupportedException

    Thrown when the method is not supported.

    API Level: 4
    Feature: http://tizen.org/feature/watch_app
    View Source

    GetTimeTickFrequency(out Int32, out TimeTickResolution)

    Deprecated since API10. Will be removed in API12.

    Gets the frequency of the time tick.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected void GetTimeTickFrequency(out int ticks, out TimeTickResolution type)
    Parameters
    Type Name Description
    Int32 ticks

    Ticks the number of ticks per given resolution type.

    TimeTickResolution type

    Type of the resolution type.

    Examples
    class MyApp : WatchApplication
    {
        ...
        public void TestMethod()
        {
            int tick;
            TimeTickResolution tType;
            try
            {
                GetTimeTickFrequency(out tick, out tType);
            }
            catch
            {
            }
        }
    }
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when failed to get the time tick frequency.

    NotSupportedException

    Thrown when the method is not supported.

    API Level: 4
    Feature: http://tizen.org/feature/watch_app
    View Source

    OnAmbientChanged(AmbientEventArgs)

    Deprecated since API10. Will be removed in API12.

    Overrides this method to handle the behavior when the ambient mode is changed. If base.OnAmbientChanged() is not called, the event 'AmbientChanged' will not be emitted.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected virtual void OnAmbientChanged(AmbientEventArgs mode)
    Parameters
    Type Name Description
    AmbientEventArgs mode

    The received AmbientEventArgs.

    API Level: 4
    View Source

    OnAmbientTick(TimeEventArgs)

    Deprecated since API10. Will be removed in API12.

    Overrides this method to handle the behavior when the time tick event comes in ambient mode. If base.OnAmbientTick() is not called, the event 'AmbientTick' will not be emitted.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected virtual void OnAmbientTick(TimeEventArgs time)
    Parameters
    Type Name Description
    TimeEventArgs time

    The received TimeEventArgs to get time information.

    API Level: 4
    Privilege Level: public
    Privilege: http://tizen.org/privilege/alarm.set
    View Source

    OnCreate()

    Deprecated since API10. Will be removed in API12.

    Overrides this method to handle the behavior when the application is launched. If base.OnCreate() is not called, the event 'Created' will not be emitted.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected override void OnCreate()
    Overrides
    CoreApplication.OnCreate()
    API Level: 4
    View Source

    OnPause()

    Deprecated since API10. Will be removed in API12.

    Overrides this method to handle the behavior when the application is paused. If base.OnPause() is not called, the event 'Paused' will not be emitted.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected virtual void OnPause()
    API Level: 4
    View Source

    OnResume()

    Deprecated since API10. Will be removed in API12.

    Overrides this method to handle the behavior when the application is resumed. If base.OnResume() is not called, the event 'Resumed' will not be emitted.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected virtual void OnResume()
    API Level: 4
    View Source

    OnTick(TimeEventArgs)

    Deprecated since API10. Will be removed in API12.

    Overrides this method to handle the behavior when the time tick event comes. If base.OnTick() is not called, the event 'TimeTick' will not be emitted.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected virtual void OnTick(TimeEventArgs time)
    Parameters
    Type Name Description
    TimeEventArgs time

    The received TimeEventArgs to get the time information.

    API Level: 4
    View Source

    Run(String[])

    Deprecated since API10. Will be removed in API12.

    Runs the UI applications' main loop.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public override void Run(string[] args)
    Parameters
    Type Name Description
    String[] args

    Arguments from the commandline.

    Overrides
    CoreApplication.Run(String[])
    API Level: 4
    View Source

    SetAmbientTickType(AmbientTickType)

    Deprecated since API10. Will be removed in API12.

    Sets the type of the periodic ambient tick. OnAmbientTick will be called for the following settings. If the SetAmbientTickType is not called, the OnAmbientTick will be called every minute.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected void SetAmbientTickType(AmbientTickType ambientTickType)
    Parameters
    Type Name Description
    AmbientTickType ambientTickType

    The type of the ambient tick.

    Examples
    class MyApp : WatchApplication
    {
        ...
        public void TestMethod()
        {
            try
            {
                SetAmbientTickType(AmbientTickType.EveryMinute);
            }
            catch
            {
            }
        }
    }
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when failed to set the ambient tick type.

    NotSupportedException

    Thrown when the method is not supported.

    API Level: 4
    Feature: http://tizen.org/feature/watch_app
    View Source

    SetTimeTickFrequency(Int32, TimeTickResolution)

    Deprecated since API10. Will be removed in API12.

    Sets the frequency of the time tick. OnTick will be called for the following settings. If SetTimeTickFrequency is not called, OnTick will be called every second.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    protected void SetTimeTickFrequency(int ticks, TimeTickResolution type)
    Parameters
    Type Name Description
    Int32 ticks

    Ticks the number of ticks per given resolution type.

    TimeTickResolution type

    Type of the resolution type.

    Examples
    class MyApp : WatchApplication
    {
        ...
        public void TestMethod()
        {
            try
            {
                SetTimeTickFrequency(1, TimeTickResolution.TimeTicksPerMinute);
            }
            catch
            {
            }
        }
    }
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when failed to set the time tick frequency.

    NotSupportedException

    Thrown when the method is not supported.

    API Level: 4
    Feature: http://tizen.org/feature/watch_app

    Events

    View Source

    AmbientChanged

    Deprecated since API10. Will be removed in API12.

    Occurs when the ambient mode is changed.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public event EventHandler<AmbientEventArgs> AmbientChanged
    Event Type
    Type Description
    EventHandler<AmbientEventArgs>
    API Level: 4
    View Source

    AmbientTick

    Deprecated since API10. Will be removed in API12.

    Occurs whenever the time tick comes in the ambient mode.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public event EventHandler<TimeEventArgs> AmbientTick
    Event Type
    Type Description
    EventHandler<TimeEventArgs>
    API Level: 4
    View Source

    Paused

    Deprecated since API10. Will be removed in API12.

    Occurs whenever the application is paused.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public event EventHandler Paused
    Event Type
    Type Description
    EventHandler
    API Level: 4
    View Source

    Resumed

    Deprecated since API10. Will be removed in API12.

    Occurs whenever the application is resumed.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public event EventHandler Resumed
    Event Type
    Type Description
    EventHandler
    API Level: 4
    View Source

    TimeTick

    Deprecated since API10. Will be removed in API12.

    Occurs whenever the time tick comes.

    Declaration
    [Obsolete("Deprecated since API10. Will be removed in API12.")]
    public event EventHandler<TimeEventArgs> TimeTick
    Event Type
    Type Description
    EventHandler<TimeEventArgs>
    API Level: 4

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX