SearchService

interface SearchService

This interface defines methods to search messages in rooms.

Functions

Link copied to clipboard
abstract suspend fun search(searchTerm: String, roomId: String, nextBatch: String?, orderByRecent: Boolean, limit: Int, beforeLimit: Int, afterLimit: Int, includeProfile: Boolean): SearchResult

Generic function to search a term in a room. Ref: https://matrix.org/docs/spec/client_server/latest#module-search