public object ScheduleLocalNotificationRepeat(DateTime dateTime, string message, RepeatEachTime repeat) { UILocalNotification localNotification = new UILocalNotification(); localNotification.SoundName = UILocalNotification.DefaultSoundName.ToString(); NSDate date = dateTime.DateTimeToNSDate(); Debug.WriteLine("date :" + date.ToString()); localNotification.FireDate = date; localNotification.AlertBody = message; switch (repeat) { case RepeatEachTime.Week: localNotification.RepeatInterval = NSCalendarUnit.Week; break; default: break; } UIApplication.SharedApplication.ScheduleLocalNotification(localNotification); return(localNotification); }
public object ScheduleLocalNotificationRepeat(DateTime dateTime, string message, RepeatEachTime repeat) { throw new NotImplementedException(); }