-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15dad11
commit cb6a83b
Showing
66 changed files
with
1,320 additions
and
624 deletions.
There are no files selected for viewing
Binary file added
BIN
+7.92 KB
...tpm/xcode/package.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
.swiftpm/xcode/xcuserdata/admin.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>CometChatUIKit.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
Sources/Components/Calls/Call Button/CallButtonConfiguration.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by Pushpsen Airekar on 19/04/23. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
import CometChatPro | ||
|
||
public final class CallButtonConfiguration { | ||
|
||
private(set) var voiceCallIcon: UIImage? | ||
private(set) var videoCallIcon: UIImage? | ||
private(set) var hideVoiceCall: Bool? | ||
private(set) var hideVideoCall: Bool? | ||
private(set) var callButtonsStyle: ButtonStyle? | ||
private(set) var onVoiceCallClick: ((_ user: User?, _ group: Group?) -> Void)? | ||
private(set) var onVideoCallClick: ((_ user: User?, _ group: Group?) -> Void)? | ||
private(set) var onError: ((_ error: CometChatException?) -> Void)? | ||
|
||
public init() {} | ||
|
||
@discardableResult | ||
public func set(voiceCallIcon: UIImage?) -> Self { | ||
self.voiceCallIcon = voiceCallIcon | ||
return self | ||
} | ||
|
||
@discardableResult | ||
public func set(videoCallIcon: UIImage?) -> Self { | ||
self.videoCallIcon = videoCallIcon | ||
return self | ||
} | ||
|
||
@discardableResult | ||
public func hide(voiceCall: Bool?) -> Self { | ||
self.hideVoiceCall = voiceCall | ||
return self | ||
} | ||
|
||
@discardableResult | ||
public func hide(videoCall: Bool?) -> Self { | ||
self.hideVideoCall = videoCall | ||
return self | ||
} | ||
|
||
@discardableResult | ||
public func set(callButtonsStyle: ButtonStyle?) -> Self { | ||
self.callButtonsStyle = callButtonsStyle | ||
return self | ||
} | ||
|
||
@discardableResult | ||
public func setOnVoiceCallClick(onVoiceCallClick: @escaping ((_ user: User?, _ group: Group?) -> Void)) -> Self { | ||
self.onVoiceCallClick = onVoiceCallClick | ||
return self | ||
} | ||
|
||
@discardableResult | ||
public func setOnVideoCallClick(onVideoCallClick: @escaping ((_ user: User?, _ group: Group?) -> Void)) -> Self { | ||
self.onVideoCallClick = onVideoCallClick | ||
return self | ||
} | ||
|
||
@discardableResult | ||
public func setOnError(onError: @escaping ((_ error: CometChatException?) -> Void)) -> Self { | ||
self.onError = onError | ||
return self | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.