NXMConversationsPage
The Conversations in your application are paginated so the NXMConversationsPage class provides a way to traverse them.
-
Conversations contained in the page. The array size could be smaller than the page size.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSArray<NXMConversation *> *conversations;
Swift
var conversations: [NXMConversation] { 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, NXMConversationsPage *_Nullable))completionHandler;
Swift
func nextPage(_ completionHandler: @escaping (Error?, NXMConversationsPage?) -> 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, NXMConversationsPage *_Nullable))completionHandler;
Swift
func previousPage(_ completionHandler: @escaping (Error?, NXMConversationsPage?) -> Void)