IOS-1576 publish sendDelegate for easier usage in Swift

IOS-1576
buff 4 years ago
parent 55de05ea0e
commit c1e678e139
  1. 3
      pEpObjCAdapter/PEPSync.m
  2. 4
      pEpObjCAdapterFramework/PEPSync.h

@ -32,7 +32,6 @@ typedef int (* t_injectSyncCallback)(SYNC_EVENT ev, void *management);
+ (PEPSync * _Nullable)instance;
@property (nonatomic, nullable, weak) id<PEPSendMessageDelegate> sendMessageDelegate;
@property (nonatomic, nullable, weak) id<PEPNotifyHandshakeDelegate> notifyHandshakeDelegate;
@property (nonatomic, nonnull) PEPQueue *queue;
@property (nonatomic, nullable) NSThread *syncThread;
@ -152,7 +151,7 @@ static __weak PEPSync *s_pEpSync;
}
- (instancetype)initWithSendMessageDelegate:(id<PEPSendMessageDelegate>
_Nonnull)sendMessageDelegate
_Nullable)sendMessageDelegate
notifyHandshakeDelegate:(id<PEPNotifyHandshakeDelegate>
_Nonnull)notifyHandshakeDelegate
{

@ -19,8 +19,10 @@
*/
@interface PEPSync : NSObject
@property (nonatomic, nullable, weak) id<PEPSendMessageDelegate> sendMessageDelegate;
- (instancetype _Nonnull)initWithSendMessageDelegate:(id <PEPSendMessageDelegate>
_Nonnull)sendMessageDelegate
_Nullable)sendMessageDelegate
notifyHandshakeDelegate:(id<PEPNotifyHandshakeDelegate>
_Nonnull)notifyHandshakeDelegate;

Loading…
Cancel
Save