Ejemplo n.º 1
0
 /// <summary>
 /// Schedules a repeating local notification.
 /// </summary>
 /// <param name="firstTriggerDateTime">DateTime value when the notification will be shown the first time.</param>
 /// <param name="intervalSeconds">Seconds between the notification shows (see remarks).</param>
 /// <param name="title">The notification title.</param>
 /// <param name="text">The notification text.</param>
 /// <param name="id">The notification ID (any notifications with the same id will be replaced by this one). <seealso cref="CancelNotification"/> <seealso cref="HideNotification"/></param>
 /// <param name="userData">(Optional) A custom IDictionary<string, string> that can be received in <c>OnNotificationsReceived<c/>. <seealso cref="OnNotificationsReceived"/></param>
 /// <param name="notificationProfile">(Optional) The name of the notification profile (sound, icon and other notification attributes).</param>
 /// <param name="badgeNumber">(Optional) The badge number, to be displayed on top of application icon, when supported. Use -1 (default) to keep previous value, 0 to hide the badge.</param>
 /// <param name="buttons">(Optional) A collection of custom buttons (Android only, ignored on the rest platforms).</param>
 /// <remarks>
 /// Please note that the actual interval may be different.
 /// On iOS there are only fixed options like every minute, every day, every week and so on. So the provided <c>intervalSeconds</c> value will be approximated by one of the available options.
 /// </remarks>
 public void ScheduleNotificationRepeating(DateTime firstTriggerDateTime, int intervalSeconds, string title, string text, int id, IDictionary <string, string> userData = null, string notificationProfile = null, int badgeNumber = -1, ICollection <Button> buttons = null)
 {
     ScheduleNotificationRepeating(TimeUtils.ToSecondsFromNow(firstTriggerDateTime), intervalSeconds, title, text, id, userData, notificationProfile, badgeNumber, buttons);
 }