NXMEventsPage

Objective-C

@interface NXMEventsPage : NXMPage

Swift

class NXMEventsPage : NXMPage

The events on an NXMConversation are paginated so the NXMEventsPage class provides a way to traverse a Conversation’s events.

  • Events contained in the page. The array size could be smaller than the page size.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSArray<NXMEvent *> *events;

    Swift

    var events: [NXMEvent] { get }
  • 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)