PresencePerson
public class PresencePerson : LinphoneObject
Presence person holding information about a presence person.
-
Gets the id of a presence person.
The returned string is to be freed by calling ms_free().
Declaration
Swift
public var id: String { get }Return Value
A pointer to a dynamically allocated string containing the id, or nil in case of error.
-
Undocumented
Declaration
Swift
public func setId(newValue: String) throws -
Gets the number of activities included in the presence person.
Declaration
Swift
public var nbActivities: UInt { get }Return Value
The number of activities included in the
PresencePersonobject. -
Gets the number of activities notes included in the presence person.
Declaration
Swift
public var nbActivitiesNotes: UInt { get }Return Value
The number of activities notes included in the
PresencePersonobject. -
Gets the number of notes included in the presence person.
Declaration
Swift
public var nbNotes: UInt { get }Return Value
The number of notes included in the
PresencePersonobject. -
Adds an activities note to a presence person.
Declaration
Swift
public func addActivitiesNote(note: PresenceNote) throwsParameters
noteThe
PresenceNoteobject to add to the person.Return Value
0 if successful, a value < 0 in case of error.
-
Adds an activity to a presence person.
Declaration
Swift
public func addActivity(activity: PresenceActivity) throwsParameters
activityThe
PresenceActivityobject to add to the person.Return Value
0 if successful, a value < 0 in case of error.
-
Adds a note to a presence person.
Declaration
Swift
public func addNote(note: PresenceNote) throwsParameters
noteThe
PresenceNoteobject to add to the person.Return Value
0 if successful, a value < 0 in case of error.
-
Clears the activities of a presence person.
Declaration
Swift
public func clearActivities() throwsReturn Value
0 if successful, a value < 0 in case of error.
-
Clears the activities notes of a presence person.
Declaration
Swift
public func clearActivitiesNotes() throwsReturn Value
0 if successful, a value < 0 in case of error.
-
Clears the notes of a presence person.
Declaration
Swift
public func clearNotes() throwsReturn Value
0 if successful, a value < 0 in case of error.
-
Gets the nth activities note of a presence person.
Declaration
Swift
public func getNthActivitiesNote(idx: UInt) -> PresenceNote?Parameters
idxThe index of the activities note to get (the first note having the index 0).
Return Value
A pointer to a
PresenceNoteobject if successful, nil otherwise. -
Gets the nth activity of a presence person.
Declaration
Swift
public func getNthActivity(idx: UInt) -> PresenceActivity?Parameters
idxThe index of the activity to get (the first activity having the index 0).
Return Value
A pointer to a
PresenceActivityobject if successful, nil otherwise. -
Gets the nth note of a presence person.
Declaration
Swift
public func getNthNote(idx: UInt) -> PresenceNote?Parameters
idxThe index of the note to get (the first note having the index 0).
Return Value
A pointer to a
PresenceNoteobject if successful, nil otherwise.
PresencePerson Class Reference