|
@@ -223,20 +223,20 @@ public class APIS: NSObject {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public static func openSeminar() {
|
|
|
|
- let isChangeProfile = Utils.getSetProfile()
|
|
|
|
- if !isChangeProfile {
|
|
|
|
- APIS.showChangeProfile()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- let navigationController = UINavigationController(rootViewController: CreateSeminarViewController())
|
|
|
|
- navigationController.defaultStyle()
|
|
|
|
- if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
|
|
- UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
- } else {
|
|
|
|
- UIApplication.shared.visibleViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// public static func openSeminar() {
|
|
|
|
+// let isChangeProfile = Utils.getSetProfile()
|
|
|
|
+// if !isChangeProfile {
|
|
|
|
+// APIS.showChangeProfile()
|
|
|
|
+// return
|
|
|
|
+// }
|
|
|
|
+// let navigationController = UINavigationController(rootViewController: CreateSeminarViewController())
|
|
|
|
+// navigationController.defaultStyle()
|
|
|
|
+// if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
|
|
+// UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
+// } else {
|
|
|
|
+// UIApplication.shared.visibleViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
public static func openAudioCall() {
|
|
public static func openAudioCall() {
|
|
let isChangeProfile = Utils.getSetProfile()
|
|
let isChangeProfile = Utils.getSetProfile()
|
|
@@ -522,22 +522,22 @@ public class APIS: NSObject {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public static func openScreenSharing() {
|
|
|
|
- let isChangeProfile = Utils.getSetProfile()
|
|
|
|
- if !isChangeProfile {
|
|
|
|
- APIS.showChangeProfile()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- let callContact = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactSID") as! ContactCallViewController
|
|
|
|
- callContact.startSS = true
|
|
|
|
- let navigationController = UINavigationController(rootViewController: callContact)
|
|
|
|
- navigationController.defaultStyle()
|
|
|
|
- if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
|
|
- UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
- } else {
|
|
|
|
- UIApplication.shared.visibleViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// public static func openScreenSharing() {
|
|
|
|
+// let isChangeProfile = Utils.getSetProfile()
|
|
|
|
+// if !isChangeProfile {
|
|
|
|
+// APIS.showChangeProfile()
|
|
|
|
+// return
|
|
|
|
+// }
|
|
|
|
+// let callContact = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactSID") as! ContactCallViewController
|
|
|
|
+// callContact.startSS = true
|
|
|
|
+// let navigationController = UINavigationController(rootViewController: callContact)
|
|
|
|
+// navigationController.defaultStyle()
|
|
|
|
+// if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
|
|
+// UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
+// } else {
|
|
|
|
+// UIApplication.shared.visibleViewController?.present(navigationController, animated: true, completion: nil)
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
public static func startScreenSharing(name: String) {
|
|
public static func startScreenSharing(name: String) {
|
|
if name.isEmpty {
|
|
if name.isEmpty {
|