public interface MagicSearch
Modifier and Type | Method and Description |
---|---|
SearchResult[] |
getContactListFromFilter(java.lang.String filter,
java.lang.String domain)
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. |
java.lang.String |
getDelimiter()
Get the delimiter used for the search.
|
boolean |
getLimitedSearch()
Return whether or not the search is limited.
|
int |
getMaxWeight()
Get the maximum value used to calculate the weight in search.
|
int |
getMinWeight()
Get the minimum value used to calculate the weight in search.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
int |
getSearchLimit()
Get the number of maximum search result the search will return.
|
boolean |
getUseDelimiter()
Returns whether the delimiter is being used for the search.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
resetSearchCache()
Reset the cache to begin a new search.
|
void |
setDelimiter(java.lang.String delimiter)
Set the delimiter used to find matched filter word.
|
void |
setLimitedSearch(boolean limited)
Enable or disable the limited search.
|
void |
setMaxWeight(int weight)
Set the maximum value used to calculate the weight in search.
|
void |
setMinWeight(int weight)
Set the minimum value used to calculate the weight in search.
|
void |
setSearchLimit(int limit)
Set the number of the maximum SearchResult which will be returned.
|
void |
setUseDelimiter(boolean enable)
Enable or disable the delimiter in search.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
@Nullable java.lang.String getDelimiter()
void setDelimiter(@Nullable java.lang.String delimiter)
delimiter
- delimiter (example "-_.,") boolean getLimitedSearch()
void setLimitedSearch(boolean limited)
limited
- true to limit the search, false otherwise int getMaxWeight()
void setMaxWeight(int weight)
weight
- maximum weight int getMinWeight()
void setMinWeight(int weight)
weight
- minimum weight int getSearchLimit()
SearchResult
which will be returned void setSearchLimit(int limit)
limit
- the maximum number of SearchResult
the search will return boolean getUseDelimiter()
void setUseDelimiter(boolean enable)
enable
- true to use the delimiter, false otherwise @NonNull SearchResult[] getContactListFromFilter(@Nullable java.lang.String filter, @Nullable java.lang.String domain)
resetSearchCache()
filter
- word we search domain
- domain which we want to search only void resetSearchCache()
void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object