PreviousMessageListQuery
public final class PreviousMessageListQuery: NSObject, Queryable
An object which retrieves messages from the given channel.
The instance of this class is created by createPreviousMessageListQuery()
in BaseChannel
class.
-
indicates there are more data to fetch
Declaration
Swift
public internal(set) var hasNext: Bool = true
-
Indicates the query is currently loading or not
Declaration
Swift
public internal(set) var isLoading: Bool = false
-
Fetches next page
Declaration
Swift
public func loadNextPage(completionHandler: @escaping MessageListHandler)
Parameters
completionHandler
completion handler
-
Copies this object
Declaration
Swift
public func copy(with zone: NSZone? = nil) -> Any
Parameters
zone
optional
NSZone
Return Value
PreviousMessageListQuery
instance
-
Sets the order of messages. If
true
, the latest message is the index 0. The default value isfalse
.Since
3.0.106Declaration
Swift
public var reverse: Bool
-
Sets the message type to filter messages. The default value is
.all
.Since
3.0.106Declaration
Swift
public var messageTypeFilter: MessageTypeFilter
-
Sets the custom type to filter messages.
Since
3.0.106Declaration
Swift
public var customTypeFilter: String?
-
Sets the custom types to filter messages.
Since
3.0.213Declaration
Swift
public var customTypesFilter: [String]?
-
Sets the senders’ user IDs filter.
Since
3.0.106Declaration
Swift
public var senderUserIdsFilter: [String]?
-
Determines message object include meta array. Default is
false
Since
3.0.116Declaration
Swift
public var includeMetaArray: Bool
-
Determines message object include reactions. Default is
false
Since
3.0.168Declaration
Swift
public var includeReactions: Bool
-
Determines whether to include the thread information of the messages in the results when the results contain parent messages. Default is
false
Since
3.0.181Declaration
Swift
public var includeThreadInfo: Bool
-
Determines whether to include parent message information of the messages in the results when the results contain reply messages. Default is
false
Declaration
Swift
public var includeParentMessageInfo: Bool
-
Sets the reply type to filter messages. The default value is
.none
.Declaration
Swift
public var replyType: ReplyType
-
Determines whether to include only messages from the subChannel to which you belong in the results. Default is
false
Note
This value is only used in open channels.Since
3.0.204Declaration
Swift
public var showSubChannelMessagesOnly: Bool
-
fetch limit
Declaration
Swift
public var limit: UInt