Skip to content

Commit

Permalink
Added MainVideoContainerSetting is in the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisheksaralaya13 committed Nov 1, 2022
1 parent 3a6707c commit 8de579f
Show file tree
Hide file tree
Showing 15 changed files with 236 additions and 192 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions CometChatPro/CometChatPro.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

Pod::Spec.new do |spec|
spec.name = 'CometChatPro'
spec.version = '3.0.910'
spec.version = '3.0.911-beta1'
spec.license = {:type => 'MIT', :file => 'License.md'}
spec.homepage = 'https://www.cometchat.com/pro'
spec.authors = { 'Abhishek Saralaya' => '[email protected]', 'pushpsen' => '[email protected]'}
spec.summary = 'CometChatPro is a platform for integrating voice, video & text messaging experiences into your websites, web apps and mobile apps'
spec.source = { :http => 'https://library.cometchat.io/ios/v3.0/xcode13/CometChatPro_3_0_910.zip'}
spec.source = { :http => 'https://library.cometchat.io/ios/v3.0/xcode13/CometChatPro_3_0_911-beta1.zip'}
spec.library = 'z', 'sqlite3', 'xml2.2'
spec.xcconfig = {'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2'}
spec.documentation_url = 'https://prodocs.cometchat.com/v2.0/docs/ios-quick-start'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="https://cocoapods.org/pods/CometChatPro"><img src="https://img.shields.io/badge/platform-iOS-orange.svg" /></a>
<a href=""><img src="https://img.shields.io/badge/language-Objective--C%20%7C%20Swift-orange.svg" /></a>
<a href=""> <img src="https://img.shields.io/badge/Contributors-4-yellowgreen" /></a>
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.910-red" /></a>
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.911-beta1-red" /></a>
<a href=""> <img src="https://img.shields.io/github/stars/cometchat-pro/ios-chat-sdk?style=social" /></a>

</p>
Expand Down Expand Up @@ -67,7 +67,7 @@ platform :ios, '11.0'
use_frameworks!

target 'YourApp' do
pod 'CometChatPro', '3.0.910'
pod 'CometChatPro', '3.0.911-beta1'
end
________________________________________________________________

Expand All @@ -84,7 +84,7 @@ platform :ios, '11.0'
use_frameworks!

target 'YourApp' do
pod 'CometChatPro', '3.0.910'
pod 'CometChatPro', '3.0.911-beta1'
pod 'CometChatCalls', '2.2.0'
end
________________________________________________________________
Expand Down
12 changes: 6 additions & 6 deletions Sources/CometChatPro.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-x86_64-simulator</string>
<key>LibraryPath</key>
<string>CometChatPro.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>CometChatPro.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>x86_64</string>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ SWIFT_CLASS("_TtC12CometChatPro12CallSettings")
@class UIView;
enum CallMode : NSInteger;
enum AvatarMode : NSInteger;
@class MainVideoContainerSetting;

SWIFT_CLASS("_TtCC12CometChatPro12CallSettings19CallSettingsBuilder")
@interface CallSettingsBuilder : NSObject
Expand All @@ -456,6 +457,7 @@ SWIFT_CLASS("_TtCC12CometChatPro12CallSettings19CallSettingsBuilder")
- (CallSettingsBuilder * _Nonnull)showSwitchToVideoCallButton:(BOOL)flag SWIFT_WARN_UNUSED_RESULT;
- (CallSettingsBuilder * _Nonnull)showRecordingButton:(BOOL)flag SWIFT_WARN_UNUSED_RESULT;
- (CallSettingsBuilder * _Nonnull)startRecordingOnCallStart:(BOOL)flag SWIFT_WARN_UNUSED_RESULT;
- (CallSettingsBuilder * _Nonnull)setmainVideoContainerSetting:(MainVideoContainerSetting * _Nonnull)videoSettings SWIFT_WARN_UNUSED_RESULT;
- (CallSettings * _Nonnull)build SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
Expand Down Expand Up @@ -512,9 +514,15 @@ typedef SWIFT_ENUM(NSInteger, Blocked, open) {


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)getUserWithUID:(NSString * _Nonnull)UID onSuccess:(void (^ _Nonnull)(User * _Nullable))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
@end

typedef SWIFT_ENUM(NSInteger, AudioMode, open) {
AudioModeSPEAKER = 0,
AudioModeEARPIECE = 1,
AudioModeHEADPHONES = 2,
AudioModeBLUETOOTH = 3,
};



@interface CometChat (SWIFT_EXTENSION(CometChatPro))
Expand Down Expand Up @@ -551,6 +559,7 @@ typedef SWIFT_ENUM(NSInteger, MessageType, open) {
};



@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

Expand All @@ -572,6 +581,17 @@ typedef SWIFT_ENUM(NSInteger, MessageCategory, open) {
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, SubscriptionType, open) {
SubscriptionTypeAllUsers = 0,
SubscriptionTypeOnlyFriends = 1,
SubscriptionTypeRole = 2,
SubscriptionTypeNone = 3,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

Expand All @@ -582,6 +602,29 @@ typedef SWIFT_ENUM(NSInteger, GroupMemberScopeType, open) {
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, SortOrder, open) {
SortOrderAsc = 0,
SortOrderDesc = 1,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, callStatus, open) {
callStatusInitiated = 0,
callStatusOngoing = 1,
callStatusUnanswered = 2,
callStatusRejected = 3,
callStatusBusy = 4,
callStatusCancelled = 5,
callStatusEnded = 6,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

Expand All @@ -592,6 +635,34 @@ typedef SWIFT_ENUM(NSInteger, UserStatus, open) {
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, CallFlowMode, open) {
CallFlowModeDEFAULT = 0,
CallFlowModeDIRECT = 1,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, CallType, open) {
CallTypeAudio = 0,
CallTypeVideo = 1,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, ConversationType, open) {
ConversationTypeUser = 0,
ConversationTypeGroup = 1,
ConversationTypeNone = 2,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

Expand Down Expand Up @@ -671,33 +742,6 @@ typedef SWIFT_ENUM(NSInteger, FeatureType, open) {
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, CallType, open) {
CallTypeAudio = 0,
CallTypeVideo = 1,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, SortOrder, open) {
SortOrderAsc = 0,
SortOrderDesc = 1,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, CallFlowMode, open) {
CallFlowModeDEFAULT = 0,
CallFlowModeDIRECT = 1,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

Expand All @@ -709,63 +753,21 @@ typedef SWIFT_ENUM(NSInteger, MemberScope, open) {


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)getUserWithUID:(NSString * _Nonnull)UID onSuccess:(void (^ _Nonnull)(User * _Nullable))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
@end

typedef SWIFT_ENUM(NSInteger, ConversationType, open) {
ConversationTypeUser = 0,
ConversationTypeGroup = 1,
ConversationTypeNone = 2,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, callStatus, open) {
callStatusInitiated = 0,
callStatusOngoing = 1,
callStatusUnanswered = 2,
callStatusRejected = 3,
callStatusBusy = 4,
callStatusCancelled = 5,
callStatusEnded = 6,
};



@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end

typedef SWIFT_ENUM(NSInteger, AudioMode, open) {
AudioModeSPEAKER = 0,
AudioModeEARPIECE = 1,
AudioModeHEADPHONES = 2,
AudioModeBLUETOOTH = 3,
};

@class TransientMessage;

@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)sendTransientMessageWithMessage:(TransientMessage * _Nonnull)message;
@end

typedef SWIFT_ENUM(NSInteger, SubscriptionType, open) {
SubscriptionTypeAllUsers = 0,
SubscriptionTypeOnlyFriends = 1,
SubscriptionTypeRole = 2,
SubscriptionTypeNone = 3,
};


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)isFeatureEnabledWithFeature:(NSString * _Nonnull)feature onSuccess:(void (^ _Nonnull)(BOOL))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
@end


@class TransientMessage;

@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)sendTransientMessageWithMessage:(TransientMessage * _Nonnull)message;
@end


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
@end
Expand Down Expand Up @@ -827,15 +829,15 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) {


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)kickGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)banGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)unbanGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)updateGroupMemberScopeWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID scope:(enum MemberScope)scope onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)processMessage:(NSDictionary<NSString *, id> * _Nonnull)message onSuccess:(void (^ _Nonnull)(BaseMessage * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
@end


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)processMessage:(NSDictionary<NSString *, id> * _Nonnull)message onSuccess:(void (^ _Nonnull)(BaseMessage * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
+ (void)kickGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)banGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)unbanGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)updateGroupMemberScopeWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID scope:(enum MemberScope)scope onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
@end


Expand All @@ -858,6 +860,14 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) {
@end


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)loginWithUID:(NSString * _Nonnull)UID apiKey:(NSString * _Nonnull)apiKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
+ (void)loginWithUID:(NSString * _Nonnull)UID authKey:(NSString * _Nonnull)authKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
+ (void)loginWithAuthToken:(NSString * _Nonnull)authToken onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
+ (void)logoutOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
@end


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)markAsReadWithBaseMessage:(BaseMessage * _Nonnull)baseMessage onSuccess:(void (^ _Nonnull)(void))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError;
+ (void)markAsReadWithBaseMessage:(BaseMessage * _Nonnull)baseMessage;
Expand All @@ -869,14 +879,6 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) {
+ (void)markAsDeliveredWithMessageId:(NSInteger)messageId receiverId:(NSString * _Nonnull)receiverId receiverType:(enum ReceiverType)receiverType messageSender:(NSString * _Nonnull)messageSender;
@end


@interface CometChat (SWIFT_EXTENSION(CometChatPro))
+ (void)loginWithUID:(NSString * _Nonnull)UID apiKey:(NSString * _Nonnull)apiKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
+ (void)loginWithUID:(NSString * _Nonnull)UID authKey:(NSString * _Nonnull)authKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
+ (void)loginWithAuthToken:(NSString * _Nonnull)authToken onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
+ (void)logoutOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError;
@end

@class Group;

@interface CometChat (SWIFT_EXTENSION(CometChatPro))
Expand Down Expand Up @@ -1300,6 +1302,12 @@ SWIFT_CLASS("_TtCC12CometChatPro13GroupsRequest20GroupsRequestBuilder")
@end


SWIFT_CLASS("_TtC12CometChatPro25MainVideoContainerSetting")
@interface MainVideoContainerSetting : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS("_TtC12CometChatPro12MediaMessage")
@interface MediaMessage : BaseMessage
@property (nonatomic, copy) NSArray<NSString *> * _Nullable tags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic) NSMutableDictionary *rtcInitiator;
@property (nonatomic,copy) NSString *setAvatarMode;
@property (weak, nonatomic) UIView *view;
@property (nonatomic) NSMutableDictionary *setmainVideoContainerSetting;
@end


Expand Down Expand Up @@ -78,6 +79,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic) NSMutableDictionary *rtcReveiver;
@property (nonatomic) NSMutableDictionary *rtcInitiator;
@property (nonatomic,copy) NSString *setAvatarMode;
@property (nonatomic) NSMutableDictionary *setmainVideoContainerSetting;
//ab try kariye maalik
@property (nonatomic,weak)NSObject<RTCEventDelegate>* delegate;
//@property (nonatomic, weak) id <RTCEventDelegate> delegate;
Expand All @@ -96,6 +98,7 @@ NS_ASSUME_NONNULL_BEGIN
-(void)setAudioModeToEarPiece;
-(void)setAudioMode:(NSMutableString*)mode;
-(void)getAudioModes:(void(^)(NSArray * list))callback;
-(void)getAudioOutputModes:(void(^)(NSArray * list))callback;
-(void)enterPIPMode;
-(void)exitPIPMode;
-(void)switchToVideoCall;
Expand Down
Binary file not shown.
Loading

0 comments on commit 8de579f

Please sign in to comment.