docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct iOSNotificationCalendarTrigger

    A trigger condition that causes a notification to be delivered at a specific date and time.

    Implements
    iOSNotificationTrigger
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Notifications.iOS
    Assembly: Unity.Notifications.iOS.dll
    Syntax
    public struct iOSNotificationCalendarTrigger : iOSNotificationTrigger
    Remarks

    Create an instance of iOSNotificationCalendarTrigger when you want to schedule the delivery of a local notification at the specified date and time. You are not required to set all of the fields because the system uses the provided information to determine the next date and time that matches the specified information automatically.

    Properties

    Day

    Specify the day to schedule the notification for or set to null to indicate any day.

    Declaration
    public int? Day { readonly get; set; }
    Property Value
    Type Description
    int?

    Number indicating day or null to ignore day

    Hour

    Specify the hour to schedule the notification for or set to null to indicate any hour.

    Declaration
    public int? Hour { readonly get; set; }
    Property Value
    Type Description
    int?

    Number indicating hour or null to ignore hour

    Minute

    Specify the minute to schedule the notification for or set to null to indicate any minute.

    Declaration
    public int? Minute { readonly get; set; }
    Property Value
    Type Description
    int?

    Number indicating minute or null to ignore minute

    Month

    Specify the month to schedule the notification for or set to null to indicate any month.

    Declaration
    public int? Month { readonly get; set; }
    Property Value
    Type Description
    int?

    Number indicating month or null to ignore month

    Repeats

    Indicate whether the notification is repeated every defined time period. For instance if hour and minute fields are set the notification will be triggered every day at the specified hour and minute.

    Declaration
    public bool Repeats { readonly get; set; }
    Property Value
    Type Description
    bool

    If true, the notification repeats for each matching date and time. If false, the notification triggers only on the first match.

    Second

    Specify the second to schedule the notification for or set to null to indicate any second.

    Declaration
    public int? Second { readonly get; set; }
    Property Value
    Type Description
    int?

    Number indicating second or null to ignore second

    Type

    The type of notification trigger. For internal use.

    Declaration
    public iOSNotificationTriggerType Type { get; }
    Property Value
    Type Description
    iOSNotificationTriggerType

    The type of the trigger

    UtcTime

    Are Date and Time field in UTC time. When false, use local time.

    Declaration
    public bool UtcTime { readonly get; set; }
    Property Value
    Type Description
    bool

    If true, use UTC time.

    Year

    Specify the year to schedule the notification for or set to null to indicate any year.

    Declaration
    public int? Year { readonly get; set; }
    Property Value
    Type Description
    int?

    Number indicating year or null to ignore year

    Methods

    ToLocal()

    Converts this trigger into the one using local time.

    Declaration
    public iOSNotificationCalendarTrigger ToLocal()
    Returns
    Type Description
    iOSNotificationCalendarTrigger

    A new trigger with UtcTime set to false and other field adjusted accordingly.

    ToUtc()

    Converts this trigger into the one using UTC time.

    Declaration
    public iOSNotificationCalendarTrigger ToUtc()
    Returns
    Type Description
    iOSNotificationCalendarTrigger

    A new trigger with UtcTime set to true and other field adjusted accordingly.

    Implements

    iOSNotificationTrigger
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)