CBLMessageEndpoint

@interface CBLMessageEndpoint : NSObject <CBLEndpoint>

ENTERPRISE EDITION ONLY.

Message endpoint.

  • uid

    The unique identifier of the endpoint.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull uid;

    Swift

    var uid: String { get }
  • The target used for storing any arbitary value representing the endpoint.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) id target;

    Swift

    var target: Any? { get }
  • The data transportation protocol.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CBLProtocolType protocolType;

    Swift

    var protocolType: CBLProtocolType { get }
  • The delegate for creating CBLMessageEndpointConnection object.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        id<CBLMessageEndpointDelegate> _Nullable delegate;

    Swift

    weak var delegate: CBLMessageEndpointDelegate? { get }
  • Initializes a CBLMessageEndpoint object.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUID:(nonnull NSString *)uid
                                 target:(nullable id)target
                           protocolType:(CBLProtocolType)protocolType
                               delegate:
                                   (nonnull id<CBLMessageEndpointDelegate>)delegate;

    Swift

    init(uid: String, target: Any?, protocolType: CBLProtocolType, delegate: CBLMessageEndpointDelegate)

    Parameters

    uid

    The unique identifier of the endpoint.

    target

    An optional arbitrary object that represents the endpoint.

    protocolType

    The data transportation protocol.

    delegate

    The delegate for creating CBLMessageEndpointConnection objects.

    Return Value

    The CBLMessageEndpoint object.

  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;