fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
6901019
main
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 15func application ( _ application : UIApplication , didFinishLaunchingWithOptions launchOptions : [ UIApplication . LaunchOptionsKey : Any ] ? ) -> Bool { 16 17livekit_connect ( "ws://localhost:7880" , "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE5MDY2MTMyODgsImlzcyI6IkFQSVRzRWZpZFpqclFvWSIsIm5hbWUiOiJuYXRpdmUiLCJuYmYiOjE2NzI2MTMyODgsInN1YiI6Im5hdGl2ZSIsInZpZGVvIjp7InJvb20iOiJ0ZXN0Iiwicm9vbUFkbWluIjp0cnVlLCJyb29tQ3JlYXRlIjp0cnVlLCJyb29tSm9pbiI6dHJ1ZSwicm9vbUxpc3QiOnRydWV9fQ.uSNIangMRu8jZD5mnRYoCHjcsQWCrJXgHCs0aNIgBFY" ) ; 18return true 19} 20 21// MARK: UISceneSession Lifecycle 22 23func 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. 26return UISceneConfiguration ( name : "Default Configuration" , sessionRole : connectingSceneSession . role ) 27} 28 29func 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