Sendbird Chat SDK for Unreal
Public Member Functions | Public Attributes | List of all members
SBDPreviousMessageListQuery Class Referencefinal

#include <SBDPreviousMessageListQuery.h>

Public Member Functions

void LoadNextPage (int limit, bool reverse, std::function< void(std::vector< SBDBaseMessage * > messages, SBDError *)> completion_handler)
 

Public Attributes

bool is_loading
 

Detailed Description

An object which retrieves messages from the given channel. The instance of this class is created by [createPreviousMessageListQuery]() in SBDBaseChannel class.

Member Function Documentation

◆ LoadNextPage()

void SBDPreviousMessageListQuery::LoadNextPage ( int  limit,
bool  reverse,
std::function< void(std::vector< SBDBaseMessage * > messages, SBDError *)>  completion_handler 
)

Loads previous message with limit.

Parameters
limitThe number of messages per page.
reverseIf yes, the latest message is the index 0.
completion_handlerThe handler interface to execute.

Member Data Documentation

◆ is_loading

bool SBDPreviousMessageListQuery::is_loading

Shows if the query is loading. It is true if the query is loading, otherwise returns false.