NXMEventsPage
The events on an NXMConversation
are paginated so the NXMEventsPage class provides a way to traverse a Conversation’s events.
-
Retrieves the next page. If the current page is the last, completionHandler will be called with an error.
Declaration
Objective-C
- (void)nextPage:(void (^_Nonnull)(NSError *_Nullable, NXMEventsPage *_Nullable))completionHandler;
Swift
func nextPage(_ completionHandler: @escaping (Error?, NXMEventsPage?) -> Void)
-
Retrieves the previous page. If the current page is the first, completionHandler will be called with an error.
Declaration
Objective-C
- (void)previousPage: (void (^_Nonnull)(NSError *_Nullable, NXMEventsPage *_Nullable))completionHandler;
Swift
func previousPage(_ completionHandler: @escaping (Error?, NXMEventsPage?) -> Void)