Files
2025-08-08 11:05:33 +08:00

32 lines
615 B
Objective-C
Executable File

//
// BJAgoraRtmManager.h
// romantic
//
// Created by bj_szd on 2023/3/18.
// Copyright © 2023 romantic. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol BJAgoraRtmManagerDelegate<NSObject>
-(void)BJAgoraRtmDidReceiveMessage:(NSDictionary *)messageDic;
@end
@interface BJAgoraRtmManager : NSObject
@property (nonatomic, weak) id<BJAgoraRtmManagerDelegate> delegate;
+ (instancetype)shared;
- (void)loginAndJoinChannelWithAppId:(NSString *)appId token:(NSString *)token roomId:(NSString *)roomId;
- (void)logoutAndLeaveChannel;
@end
NS_ASSUME_NONNULL_END