File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed
src/Plugin.Maui.CalendarStore Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -535,45 +535,6 @@ DateTimeOffset GetEventStartTime(long eventId)
535535 throw new CalendarStoreException ( $ "Failed to retrieve start time for event with ID { eventId } .") ;
536536 }
537537
538- List < long > GetExistingReminders ( long eventId )
539- {
540- if ( platformContentResolver is null )
541- {
542- throw new InvalidOperationException ( "PlatformContentResolver is not initialized." ) ;
543- }
544-
545- var reminderIds = new List < long > ( ) ;
546- var selection = $ "{ CalendarContract . Reminders . InterfaceConsts . EventId } = ?";
547- var selectionArgs = new [ ] { eventId . ToString ( ) } ;
548-
549- using var cursor = platformContentResolver . Query (
550- remindersTableUri ,
551- new [ ] { CalendarContract . Reminders . InterfaceConsts . Id } ,
552- selection ,
553- selectionArgs ,
554- null ) ;
555-
556- if ( cursor is not null && cursor . MoveToFirst ( ) )
557- {
558- do
559- {
560- try
561- {
562- var reminderId = cursor . GetLong ( cursor . GetColumnIndexOrThrow ( CalendarContract . Reminders . InterfaceConsts . Id ) ) ;
563- reminderIds . Add ( reminderId ) ;
564- }
565- catch ( Exception ex )
566- {
567- // Log or handle the exception if needed
568- Console . WriteLine ( $ "Error retrieving reminder ID: { ex . Message } ") ;
569- }
570- }
571- while ( cursor . MoveToNext ( ) ) ;
572- }
573-
574- return reminderIds ;
575- }
576-
577538 /// <inheritdoc/>
578539 public async Task DeleteEvent ( string eventId )
579540 {
You can’t perform that action at this time.
0 commit comments