SearchResult

public class SearchResult : LinphoneObject

The LinphoneSearchResult object represents a result of a search.

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> SearchResult
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Gets the address of the search result if any.

    Declaration

    Swift

    public var address: Address? { get }

    Return Value

    The associed Address or nil.

  • Returns the capabilities mask of the search result.

    Declaration

    Swift

    public var capabilities: Int { get }

    Return Value

    the capabilities mask associated to the search result

  • Gets the friend of the search result if any.

    Declaration

    Swift

    public var friend: Friend? { get }

    Return Value

    The associated Friend or nil.

  • Gets the phone number of the search result if any.

    Declaration

    Swift

    public var phoneNumber: String { get }

    Return Value

    The associed phone number or nil.

  • Gets the weight of the search result.

    Declaration

    Swift

    public var weight: UInt { get }

    Return Value

    the result weight

  • Returns whether or not the search result has the given capability.

    Declaration

    Swift

    public func hasCapability(capability: FriendCapability) -> Bool

    Parameters

    capability

    the FriendCapability to check

    Return Value

    true if it has the capability, false otherwise.