fork/rust-sdks

git clone https://git.julia.blue/fork/rust-sdks

Théo Monnomfeat: ios & android support (#106)6901019

main
1.6 KiB37 linesraw
1//
2//  AppDelegate.swift
3//  rust-example
4//
5//  Created by Théo Monnom on 05/07/2023.
6//
7
8import UIKit
9
10@main
11class AppDelegate: UIResponder, UIApplicationDelegate {
12
13
14
15    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
16    
17        livekit_connect("ws://localhost:7880", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE5MDY2MTMyODgsImlzcyI6IkFQSVRzRWZpZFpqclFvWSIsIm5hbWUiOiJuYXRpdmUiLCJuYmYiOjE2NzI2MTMyODgsInN1YiI6Im5hdGl2ZSIsInZpZGVvIjp7InJvb20iOiJ0ZXN0Iiwicm9vbUFkbWluIjp0cnVlLCJyb29tQ3JlYXRlIjp0cnVlLCJyb29tSm9pbiI6dHJ1ZSwicm9vbUxpc3QiOnRydWV9fQ.uSNIangMRu8jZD5mnRYoCHjcsQWCrJXgHCs0aNIgBFY");
18        return true
19    }
20
21    // MARK: UISceneSession Lifecycle
22
23    func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
24        // Called when a new scene session is being created.
25        // Use this method to select a configuration to create the new scene with.
26        return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
27    }
28
29    func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
30        // Called when the user discards a scene session.
31        // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
32        // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
33    }
34
35
36}
37