element-ios/Riot/Managers/Call/CallPresenterDelegate.swift

29 lines
1008 B
Swift

//
// Copyright 2020-2024 New Vector Ltd.
//
// SPDX-License-Identifier: AGPL-3.0-only
// Please see LICENSE in the repository root for full details.
//
import Foundation
@objc
protocol CallPresenterDelegate: AnyObject {
// Call screens
func callPresenter(_ presenter: CallPresenter,
presentCallViewController viewController: UIViewController,
completion:(() -> Void)?)
func callPresenter(_ presenter: CallPresenter,
dismissCallViewController viewController: UIViewController,
completion:(() -> Void)?)
// PiP
func callPresenter(_ presenter: CallPresenter,
enterPipForCallViewController viewController: UIViewController,
completion:(() -> Void)?)
func callPresenter(_ presenter: CallPresenter,
exitPipForCallViewController viewController: UIViewController,
completion:(() -> Void)?)
}