LCIMServiceConversation

Objective-C

@interface LCIMServiceConversation : LCIMConversation

/**
 Add ID of conversation's client to conversation's members.

 @param callback Result callback.
 */
- (void)subscribeWithCallback:(void(^)(BOOL, NSError * _Nullable))callback;

/**
 Remove ID of conversation's client from conversation's members.
 
 @param callback Result callback.
 */
- (void)unsubscribeWithCallback:(void(^)(BOOL, NSError * _Nullable))callback;

@end

Swift

class LCIMServiceConversation : LCIMConversation

Undocumented

  • Add ID of conversation’s client to conversation’s members.

    Declaration

    Objective-C

    - (void)subscribeWithCallback:(nonnull void (^)(BOOL,
                                                    NSError *_Nullable))callback;

    Swift

    func subscribe(callback: @escaping (Bool, Error?) -> Void)

    Parameters

    callback

    Result callback.

  • Remove ID of conversation’s client from conversation’s members.

    Declaration

    Objective-C

    - (void)unsubscribeWithCallback:(nonnull void (^)(BOOL,
                                                      NSError *_Nullable))callback;

    Swift

    func unsubscribe(callback: @escaping (Bool, Error?) -> Void)

    Parameters

    callback

    Result callback.