Package org.linphone.core
Interface InfoMessage
public interface InfoMessage
Object representing an informational message sent or received by the core.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a header to an info message to be sent.Returns the info message's content as aContent
structure.Obtain a header value from a received info message.long
Gets the native pointer used by this class to make native method calls.Gets the object stored in this object user's datavoid
setContent
(Content content) Assign a content to the info message.void
setUserData
(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getContent
- Returns:
- the
Content
object.
-
setContent
Assign a content to the info message.
All fields of theContent
are copied, thus the application can
destroy/modify/recycloe the content object freely ater the function returns.- Parameters:
content
- the content described as aContent
structure.
-
addHeader
Add a header to an info message to be sent.
- Parameters:
name
- the header'namevalue
- the header's value
-
getHeader
Obtain a header value from a received info message.
- Parameters:
name
- the header'name- Returns:
- the corresponding header's value, or null if not exists.
-
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()
-