Struct iOSNotificationCalendarTrigger
A trigger condition that causes a notification to be delivered at a specific date and time.
Implements
Inherited Members
Namespace: Unity.Notifications.iOS
Assembly: solution.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
Day
Declaration
public int? Day { get; set; }
Property Value
Type | Description |
---|---|
int? |
Hour
Hour
Declaration
public int? Hour { get; set; }
Property Value
Type | Description |
---|---|
int? |
Minute
Minute
Declaration
public int? Minute { get; set; }
Property Value
Type | Description |
---|---|
int? |
Month
Month
Declaration
public int? Month { get; set; }
Property Value
Type | Description |
---|---|
int? |
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 { get; set; }
Property Value
Type | Description |
---|---|
bool |
Second
Second
Declaration
public int? Second { get; set; }
Property Value
Type | Description |
---|---|
int? |
Type
The type of notification trigger.
Declaration
public iOSNotificationTriggerType Type { get; }
Property Value
Type | Description |
---|---|
iOSNotificationTriggerType |
UtcTime
Are Date and Time field in UTC time. When false, use local time.
Declaration
public bool UtcTime { get; set; }
Property Value
Type | Description |
---|---|
bool |
Year
Year
Declaration
public int? Year { get; set; }
Property Value
Type | Description |
---|---|
int? |
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. |