NXMConversation

@interface NXMConversation

Undocumented

  • Conversation unique identifier.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) int *uuid;
  • Conversation unique name.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) int *name;
  • Conversation display name.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) int *displayName;
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger lastEventId
  • Conversation creation date

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) int *creationDate;
  • The current user member

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NXMMember *myMember;
  • Conversation events delegate

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<NXMConversationDelegate> delegate;
  • Conversation updates delegate

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<NXMConversationUpdateDelegate>
        updatesDelegate;
  • Undocumented

    Declaration

    Objective-C

    - (void)inviteMemberWithUsername:(id)username
                          completion:(void (^_Nullable)(int *_Nullable))completion;
  • Undocumented

    Declaration

    Objective-C

    - (void)join:(void (^_Nullable)(int *_Nullable,
                                    NXMMember *_Nullable))completionHandler;
  • Undocumented

    Declaration

    Objective-C

    - (void)joinMemberWithUsername:(id)username
                        completion:
                            (void (^_Nullable)(int *_Nullable,
                                               NXMMember *_Nullable))completion;
  • Undocumented

    Declaration

    Objective-C

    - (void)leave:(void (^_Nullable)(int *_Nullable))completionHandler;
  • Kicks a member from participating in the conversation

    Declaration

    Objective-C

    - (void)kickMemberWithMemberId:(id)memberId
                        completion:(void (^_Nullable)(int *_Nullable))completion;

    Parameters

    memberId

    The id of the member to kick

    completion

    A completion block with an error object if one occured

  • Enable media for the current user member

    Declaration

    Objective-C

    - (void)enableMedia;
  • Disable media for the current user member

    Declaration

    Objective-C

    - (void)disableMedia;
  • Send a custom event in the conversation

    Declaration

    Objective-C

    - (void)sendCustomWithEvent:(id)customType
                           data:(id)data
              completionHandler:
                  (void (^_Nullable)(int *_Nullable))completionHandler;

    Parameters

    customType

    The customType name

    data

    The custom event data

    completionHandler

    A completion block with an error object if one occured

  • Sends a text message to the members of the conversation

    Declaration

    Objective-C

    - (void)sendText:(id)text
        completionHandler:(void (^_Nullable)(int *_Nullable))completionHandler;

    Parameters

    text

    The text to send

    completionHandler

    A completion block with an error object if one occured

  • Sends an attachment message to the members of the conversation

    Declaration

    Objective-C

    - (void)sendAttachmentWithType:(id)type
                              name:(id)name
                              data:(id)data
                 completionHandler:
                     (void (^_Nullable)(int *_Nullable))completionHandler;

    Parameters

    type

    The type of the attachment following NXMAttachmentType enum

    name

    A name identifier of the attachment

    data

    The data of the attachment in a NSData representation

    completionHandler

    A completion block with an error object if one occured

  • Sends an indication that the current user’s member has seen a message

    Declaration

    Objective-C

    - (void)sendMarkSeenMessage:(id)message
              completionHandler:
                  (void (^_Nullable)(int *_Nullable))completionHandler;

    Parameters

    message

    The message identifier of the message that has been seen by the current user

    completionHandler

    A completion block with an error object if one occured

  • Sends an indication that the current user’s member started typing

    Declaration

    Objective-C

    - (void)sendStartTyping:(void (^_Nullable)(int *_Nullable))completionHandler;

    Parameters

    completionHandler

    A completion block with an error object if one occured

  • Sends an indication that the current user’s member stopped typing

    Declaration

    Objective-C

    - (void)sendStopTyping:(void (^_Nullable)(int *_Nullable))completionHandler;

    Parameters

    completionHandler

    A completion block with an error object if one occured

  • Undocumented

    Declaration

    Objective-C

    - (void)getEvents:(void (^_Nullable)(int *_Nullable, int))completionHandler;