-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from AgoraIO-Community/ngsdk-betterdelegates
4.0.0-preview.4 - Delegate calls from 1.6.4
- Loading branch information
Showing
23 changed files
with
485 additions
and
68 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
podspec: AgoraUIKit_iOS.podspec | ||
exclude: | ||
- Sources/Agora-UIKit/iOS+macOS+typealiases.swift | ||
- Sources/Agora-UIKit/AgoraUIKit+MD5.swift | ||
- Sources/Agora-UIKit/AgoraUIKit+MD5.swift | ||
- Sources/Agora-UIKit/AgoraRtmController+RtmDelegateOverflows.swift | ||
- Sources/Agora-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.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
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
48 changes: 48 additions & 0 deletions
48
Sources/Agora-UIKit/AgoraRtmController+RtmDelegateOverflows.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,48 @@ | ||
// | ||
// AgoraRtmController+RtmDelegateOverflows.swift | ||
// | ||
// | ||
// Created by Max Cobb on 29/09/2021. | ||
// | ||
|
||
import AgoraRtmKit | ||
|
||
extension AgoraRtmController { | ||
open func rtmKit(_ kit: AgoraRtmKit, peersOnlineStatusChanged onlineStatus: [AgoraRtmPeerOnlineStatus]) { | ||
self.agoraSettings.rtmDelegate?.rtmKit?(kit, peersOnlineStatusChanged: onlineStatus) | ||
} | ||
open func rtmKit(_ kit: AgoraRtmKit, fileMessageReceived message: AgoraRtmFileMessage, fromPeer peerId: String) { | ||
self.agoraSettings.rtmDelegate?.rtmKit?(kit, fileMessageReceived: message, fromPeer: peerId) | ||
} | ||
open func rtmKit(_ kit: AgoraRtmKit, imageMessageReceived message: AgoraRtmImageMessage, fromPeer peerId: String) { | ||
self.agoraSettings.rtmDelegate?.rtmKit?(kit, imageMessageReceived: message, fromPeer: peerId) | ||
} | ||
open func rtmKit(_ kit: AgoraRtmKit, media requestId: Int64, uploadingProgress progress: AgoraRtmMediaOperationProgress) { | ||
self.agoraSettings.rtmDelegate?.rtmKit?(kit, media: requestId, uploadingProgress: progress) | ||
} | ||
open func rtmKit(_ kit: AgoraRtmKit, media requestId: Int64, downloadingProgress progress: AgoraRtmMediaOperationProgress) { | ||
self.agoraSettings.rtmDelegate?.rtmKit?(kit, media: requestId, downloadingProgress: progress) | ||
} | ||
open func rtmKit(_ kit: AgoraRtmKit, connectionStateChanged state: AgoraRtmConnectionState, reason: AgoraRtmConnectionChangeReason) { | ||
self.agoraSettings.rtmDelegate?.rtmKit?(kit, connectionStateChanged: state, reason: reason) | ||
} | ||
} | ||
|
||
extension AgoraRtmController { | ||
open func channel(_ channel: AgoraRtmChannel, memberCount count: Int32) { | ||
self.agoraSettings.rtmChannelDelegate?.channel?(channel, memberCount: count) | ||
} | ||
open func channel(_ channel: AgoraRtmChannel, memberLeft member: AgoraRtmMember) { | ||
self.agoraSettings.rtmChannelDelegate?.channel?(channel, memberLeft: member) | ||
} | ||
open func channel(_ channel: AgoraRtmChannel, attributeUpdate attributes: [AgoraRtmChannelAttribute]) { | ||
self.agoraSettings.rtmChannelDelegate?.channel?(channel, attributeUpdate: attributes) | ||
} | ||
open func channel(_ channel: AgoraRtmChannel, fileMessageReceived message: AgoraRtmFileMessage, from member: AgoraRtmMember) { | ||
self.agoraSettings.rtmChannelDelegate?.channel?(channel, fileMessageReceived: message, from: member) | ||
} | ||
open func channel(_ channel: AgoraRtmChannel, imageMessageReceived message: AgoraRtmImageMessage, from member: AgoraRtmMember) { | ||
self.agoraSettings.rtmChannelDelegate?.channel?(channel, imageMessageReceived: message, from: member) | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
#if os(iOS) | ||
import UIKit | ||
#else | ||
#elseif os(macOS) | ||
import AppKit | ||
#endif | ||
|
||
|
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
Oops, something went wrong.