Class Alarm

    Definition

    Namespace:
    Tizen.Applications
    Assembly:
    Tizen.Applications.Alarm.dll

    The alarm API allows setting an "alarm clock" for the delivery of a notification at some point in the future.

    public class Alarm
    Inheritance
    object
    Alarm
    Examples
    public class AlarmExample
    {
        /// ...
        IEnumerable < Alarm > alarms = AlarmManager.GetAllScheduledAlarms();
        alarms[0].Cancel();
    }

    Properties

    View Source

    AlarmAppControl

    Gets the AppControl to be invoked when the the alarm is triggered.

    Declaration
    public AppControl AlarmAppControl { get; }
    Property Value
    Type Description
    AppControl
    View Source

    AlarmId

    The alarm ID uniquely identifies an alarm.

    Declaration
    public int AlarmId { get; }
    Property Value
    Type Description
    int
    View Source

    Global

    Gets whether the alarm will launch global application or not.

    Declaration
    public bool Global { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Period

    Gets the period of time between the recurrent alarms.

    Declaration
    public int Period { get; }
    Property Value
    Type Description
    int
    View Source

    ScheduledDate

    Gets the scheduled time.

    Declaration
    public DateTime ScheduledDate { get; }
    Property Value
    Type Description
    System.DateTime
    View Source

    WeekFlag

    Gets the recurrence days of the week.

    Declaration
    public AlarmWeekFlag WeekFlag { get; }
    Property Value
    Type Description
    AlarmWeekFlag
    Remarks

    week_flag may be a combination of days, like Tuesday | Friday.

    Methods

    View Source

    Cancel()

    Cancels the specific alarm.

    Declaration
    public void Cancel()
    Exceptions
    Type Condition
    System.ArgumentException

    Thrown in case of an invalid parmaeter.

    System.UnauthorizedAccessException

    Thrown in case of a permission denied due to insufficient privileges.

    System.InvalidOperationException

    Thrown in case of any internal error.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX