refactor: remove activity dependency from LinphoneBridge
This commit is contained in:
parent
0375fe4d1a
commit
9a86c4881c
2 changed files with 1 additions and 22 deletions
|
|
@ -7,7 +7,6 @@ class LinphoneBridge {
|
|||
private var core: Core!
|
||||
private var isRegistered = false
|
||||
private var currentCall: Call?
|
||||
private let activity: UIViewController
|
||||
private let remoteViewAcquisitor: () -> UIView?
|
||||
private let localViewAcquisitor: () -> UIView?
|
||||
private let onRegistrationStateChanged: (Int) -> Void
|
||||
|
|
@ -30,13 +29,11 @@ class LinphoneBridge {
|
|||
private static let TAG = "LinphoneBridge"
|
||||
|
||||
init(
|
||||
activity: UIViewController,
|
||||
remoteViewAcquisitor: @escaping () -> UIView?,
|
||||
localViewAcquisitor: @escaping () -> UIView?,
|
||||
onRegistrationStateChanged: @escaping (Int) -> Void,
|
||||
onCallStateChanged: @escaping (Int) -> Void
|
||||
) {
|
||||
self.activity = activity
|
||||
self.remoteViewAcquisitor = remoteViewAcquisitor
|
||||
self.localViewAcquisitor = localViewAcquisitor
|
||||
self.onRegistrationStateChanged = onRegistrationStateChanged
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue