ChatRoomDelegate

open class ChatRoomDelegate : LinphoneObjectDelegate

Undocumented

  • Undocumented

    Declaration

    Swift

    public init()
  • Callback used to notify a chat room state has changed.

    Declaration

    Swift

    open func onStateChanged(cr: ChatRoom, newState: ChatRoom.State)

    Parameters

    cr

    LinphoneChatRoom object

    newState

    The new state of the chat room

  • Callback used when a group chat room server is unsubscribing to registration state of a participant.

    Declaration

    Swift

    open func onParticipantRegistrationUnsubscriptionRequested(cr: ChatRoom, participantAddr: Address)

    Parameters

    cr

    LinphoneChatRoom object

    participantAddr

    LinphoneAddress object

  • Callback used to notify a chat room that the admin status of a participant has been changed.

    Declaration

    Swift

    open func onParticipantAdminStatusChanged(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used to notify a chat room that a participant has been removed.

    Declaration

    Swift

    open func onParticipantRemoved(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used to notify a chat room that the lifespan of an ephemeral message before disappearing has started to decrease. This callback is called when the ephemeral message is read by the receiver.

    Declaration

    Swift

    open func onEphemeralMessageTimerStarted(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

  • Callback used to notify a chat room that a message has been received but we were unable to decrypt it.

    Declaration

    Swift

    open func onUndecryptableMessageReceived(cr: ChatRoom, msg: ChatMessage)

    Parameters

    cr

    LinphoneChatRoom involved in this conversation

    msg

    The LinphoneChatMessage that has been received

  • Callback used to notify a chat room that a participant has been added.

    Declaration

    Swift

    open func onParticipantAdded(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used to notify a chat room that an ephemeral related event has been generated.

    Declaration

    Swift

    open func onEphemeralEvent(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

  • Callback used to notify a chat room that a chat message has been received.

    Declaration

    Swift

    open func onChatMessageReceived(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used when a group chat room is created server-side to generate the address of the chat room. The function linphone_chat_room_set_conference_address needs to be called by this callback.

    Declaration

    Swift

    open func onConferenceAddressGeneration(cr: ChatRoom)

    Parameters

    cr

    LinphoneChatRoom object

  • Callback used to notify a chat room that a participant has been added.

    Declaration

    Swift

    open func onParticipantDeviceAdded(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used to notify a security event in the chat room.

    Declaration

    Swift

    open func onSecurityEvent(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used to notify a chat room has been left.

    Declaration

    Swift

    open func onConferenceLeft(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

  • Callback used to notify that the subject of a chat room has changed.

    Declaration

    Swift

    open func onSubjectChanged(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used to notify a chat room that a chat message is being sent.

    Declaration

    Swift

    open func onChatMessageSent(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Callback used to notify a chat room has been joined.

    Declaration

    Swift

    open func onConferenceJoined(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

  • Callback used to notify a chat room that a message has been received.

    Declaration

    Swift

    open func onMessageReceived(cr: ChatRoom, msg: ChatMessage)

    Parameters

    cr

    LinphoneChatRoom object

    msg

    The LinphoneChatMessage that has been received

  • Callback used to notify a chat room that an ephemeral message has been deleted.

    Declaration

    Swift

    open func onEphemeralMessageDeleted(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

  • Callback used when a group chat room server is subscribing to registration state of a participant.

    Declaration

    Swift

    open func onParticipantRegistrationSubscriptionRequested(cr: ChatRoom, participantAddr: Address)

    Parameters

    cr

    LinphoneChatRoom object

    participantAddr

    LinphoneAddress object

  • Callback used to notify a chat room that a participant has been removed.

    Declaration

    Swift

    open func onParticipantDeviceRemoved(cr: ChatRoom, eventLog: EventLog)

    Parameters

    cr

    LinphoneChatRoom object

    eventLog

    LinphoneEventLog The event to be notified

  • Is composing notification callback prototype.

    Declaration

    Swift

    open func onIsComposingReceived(cr: ChatRoom, remoteAddr: Address, isComposing: Bool)

    Parameters

    cr

    LinphoneChatRoom involved in the conversation

    remoteAddr

    The address that has sent the is-composing notification

    isComposing

    A boolean value telling whether the remote is composing or not

  • Callback used to tell the core whether or not to store the incoming message in db or not using linphone_chat_message_set_to_be_stored.

    Declaration

    Swift

    open func onChatMessageShouldBeStored(cr: ChatRoom, msg: ChatMessage)

    Parameters

    cr

    LinphoneChatRoom object

    msg

    The LinphoneChatMessage that is being received