Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get note's reminderTime from ENNote #121

Open
SeanChense opened this issue Dec 10, 2015 · 1 comment
Open

How to get note's reminderTime from ENNote #121

SeanChense opened this issue Dec 10, 2015 · 1 comment

Comments

@SeanChense
Copy link

    ENNoteSearch *search = [ENNoteSearch noteSearchWithSearchString:@"reminderOrder:*"];
    [sesion findNotesWithSearch:search inNotebook:nil orScope:ENSessionSearchScopeAll sortOrder:ENSessionSortOrderNormal maxResults:100 completion:^(NSArray *findNotesResults, NSError *findNotesError) {
        for (ENSessionFindNotesResult* result in findNotesResults) {
            [sesion downloadNote:result.noteRef progress:^(CGFloat progress) {
                NSLog(@"downloading notes %f", progress);
            } completion:^(ENNote *note, NSError *downloadNoteError) {
                NSLog(@"note reminder is %d",note.isReminder);
            }];
        }
    }];

I have downloaded all note which isReminder is 1, but I don't know how to access reminderTime from ENNote.
Could you help me?

@jimdusseau
Copy link
Contributor

You'll need to get access to the underlying EDAMNote. Its attributes property has properties for reminderOrder, reminderDoneTime, and reminderTime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants