MagicSearch
public class MagicSearch : LinphoneObject
A MagicSearch
is used to do specifics searchs.
-
Undocumented
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> MagicSearch
-
Undocumented
Declaration
Swift
public var getCobject: OpaquePointer? { get }
-
Get the delimiter used for the search.
Declaration
Swift
public var delimiter: String { get set }
Return Value
the delimiter used to find matched filter word
-
Return whether or not the search is limited.
Declaration
Swift
public var limitedSearch: Bool { get set }
Return Value
true if the search is limited, false otherwise
-
Get the maximum value used to calculate the weight in search.
Declaration
Swift
public var maxWeight: UInt { get set }
Return Value
the maximum value used to calculate the weight in search
-
Get the minimum 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
-
Get the number of maximum search result the search will return.
Declaration
Swift
public var searchLimit: UInt { get set }
Return Value
the number of the maximum
SearchResult
which will be returned -
Returns whether the delimiter is being used for the search.
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
-
Reset the cache to begin a new search.
Declaration
Swift
public func resetSearchCache()