Package org.linphone.core
Interface PresenceActivity
public interface PresenceActivity
Presence activity type holding information about a presence activity.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets the description of a presence activity.longGets the native pointer used by this class to make native method calls.getType()Gets the activity type of a presence activity.Gets the object stored in this object user's dataintsetDescription(String description) Sets the description of a presence activity.intsetType(PresenceActivity.Type acttype) Sets the type of activity of a presence activity.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()Gets the string representation of a presence activity.
-
Method Details
-
getDescription
Gets the description of a presence activity.
- Returns:
- A pointer to the description string of the presence activity, or null
if no description is specified.
-
setDescription
Sets the description of a presence activity.
- Parameters:
description- An additional description of the activity. Can be null if no
additional description is to be added.- Returns:
- 0 if successful, a value < 0 in case of error.
-
getType
PresenceActivity.Type getType()Gets the activity type of a presence activity.
- Returns:
- The
PresenceActivity.Typeof the activity.
-
setType
Sets the type of activity of a presence activity.
- Parameters:
acttype- ThePresenceActivity.Typeto set for the activity.- Returns:
- 0 if successful, a value < 0 in case of error.
-
toString
Gets the string representation of a presence activity.
-
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
-