InfoMessage

public class InfoMessage : LinphoneObject

Object representing an informational message sent or received by the core.

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Assign a content to the info message. All fields of the Content are copied, thus the application can destroy/modify/recycloe the content object freely ater the function returns.

    Declaration

    Swift

    public var content: Content? { get set }

    Parameters

    content

    the content described as a Content structure.
    Returns the info message’s content as a Content structure.

    Return Value

    the Content object.

  • Add a header to an info message to be sent.

    Declaration

    Swift

    public func addHeader(name: String, value: String?)

    Parameters

    name

    the header'name

    value

    the header’s value

  • Obtain a header value from a received info message.

    Declaration

    Swift

    public func getHeader(name: String) -> String

    Parameters

    name

    the header'name

    Return Value

    the corresponding header’s value, or nil if not exists.