/
AppDelegate.swift
executable file
·41 lines (32 loc) · 1.26 KB
/
AppDelegate.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// AppDelegate.swift
// VoxeetSDK Sample
//
// Created by Corentin Larroque on 22/04/16.
// Copyright © 2016 Voxeet. All rights reserved.
//
import UIKit
import VoxeetSDK
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, VTSessionDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Voxeet SDK initialization.
VoxeetSDK.shared.initialize(consumerKey: "YOUR_CONSUMER_KEY", consumerSecret: "YOUR_CONSUMER_SECRET")
// Example of public variables to change the conference behavior.
VoxeetSDK.shared.pushNotification.type = .none
VoxeetSDK.shared.conference.defaultBuiltInSpeaker = true
VoxeetSDK.shared.conference.defaultVideo = false
VoxeetSDK.shared.conference.audio3D = true
// Session delegate.
VoxeetSDK.shared.session.delegate = self
return true
}
/*
* MARK: VTSessionDelegate example
*/
func sessionUpdated(state: VTSessionState) {
// Debug.
print("[Sample] \(String(describing: AppDelegate.self)).\(#function).\(#line) - State: \(state.rawValue)")
}
}