MagicSearch

public class MagicSearch : LinphoneObject

A MagicSearch is used to do specifics searchs.

  • Declaration

    Swift

    public var delimiter: String { get set }

    Return Value

    the delimiter used to find matched filter word

  • Declaration

    Swift

    public var limitedSearch: Bool { get set }

    Return Value

    if the search is limited

  • Declaration

    Swift

    public var maxWeight: UInt { get set }

    Return Value

    the maximum value used to calculate the weight in search

  • Declaration

    Swift

    public var minWeight: UInt { get set }

    Return Value

    the minimum value used to calculate the weight in search

  • Declaration

    Swift

    public var searchLimit: UInt { get set }

    Return Value

    the number of the maximum SearchResult which will be return

  • Declaration

    Swift

    public var useDelimiter: Bool { get set }

    Return Value

    if the delimiter search is used

  • Create a sorted list of SearchResult from SipUri, Contact name, Contact displayname, Contact phone number, which match with a filter word The last item list will be an address formed with “filter” if a proxy config exist During the first search, a cache is created and used for the next search Use resetSearchCache() to begin a new search.

    Declaration

    Swift

    public func getContactListFromFilter(filter: String, domain: String) -> [SearchResult]

    Parameters

    filter

    word we search

    domain

    domain which we want to search only

    Return Value

    sorted list of A list of SearchResult objects. LinphoneSearchResult The objects inside the list are freshly allocated with a reference counter equal to one, so they need to be freed on list destruction with bctbx_list_free_with_data() for instance.

  • Reset the cache to begin a new search.

    Declaration

    Swift

    public func resetSearchCache()