Package org.linphone.core
Interface SearchResult
public interface SearchResult
The LinphoneSearchResult object represents a result of a search.
-
Method Summary
Modifier and TypeMethodDescriptionGets the address of the search result if any.int
Returns the capabilities mask of the search result.Gets the friend of the search result if any.long
Gets the native pointer used by this class to make native method calls.Gets the phone number of the search result if any.int
Gets source flags of the search result.Gets the object stored in this object user's dataint
Gets the weight of the search result.boolean
hasCapability
(Friend.Capability capability) Returns whether or not the search result has the given capability.void
setUserData
(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getAddress
Gets the address of the search result if any.
- Returns:
- The associed
Address
or null.
-
getCapabilities
int getCapabilities()Returns the capabilities mask of the search result.
- Returns:
- the capabilities mask associated to the search result
-
getFriend
Gets the friend of the search result if any.
- Returns:
- The associated
Friend
or null.
-
getPhoneNumber
Gets the phone number of the search result if any.
- Returns:
- The associed phone number or null.
-
getSourceFlags
int getSourceFlags()Gets source flags of the search result.
- Returns:
- the source flags from
MagicSearch#Source
-
getWeight
int getWeight()Gets the weight of the search result.
- Returns:
- the result weight
-
hasCapability
Returns whether or not the search result has the given capability.
- Parameters:
capability
- theFriend#Capability
to check- Returns:
- true if it has the capability, false otherwise.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data
- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-