VMF_AppDelegate

@main
class VMF_AppDelegate : UIResponder
extension VMF_AppDelegate: UIApplicationDelegate

This is the original app delegate part of the app (starting point). We are actually using Scene Delegate, but this is a good place to use as a “fulcrum.”

  • This is set to the open meeting, if we have one we are looking at.

    Declaration

    Swift

    static var openMeeting: VMF_MeetingInspectorViewController?
  • This is set to the Main Screen controller

    Declaration

    Swift

    static var mainScreenController: VMF_MainViewController?
  • This handles the server data. This is the main container. All others reference this weakly.

    “There can only be one.” - Connor MacLeod

    Declaration

    Swift

    static var virtualService: SwiftBMLSDK_MeetingLocalTimezoneCollection?
  • This is the singleton for the prefs.

    Declaration

    Swift

    static var prefs: VMF_Persistent_Prefs

Static Functions

  • Fetches all of the virtual meetings (hybrid and pure virtual).

    Declaration

    Swift

    class func findMeetings(completion inCompletion: @escaping (SwiftBMLSDK_MeetingLocalTimezoneCollection?) -> Void)

    Parameters

    completion

    A tail completion handler. One parameter, with the virtual service (nil, if error). May be called in any thread.

  • Displays the given message and title in an alert with an “OK” button.

    Declaration

    Swift

    class func displayAlert(header inHeader: String, message inMessage: String = "", presentedBy inPresentingViewController: UIViewController! = nil)

    Parameters

    header

    a string to be displayed as the title of the alert. It is localized by this method.

    message

    a string to be displayed as the message of the alert. It is localized by this method.

    presentedBy

    An optional UIViewController object that is acting as the presenter context for the alert. If nil, we use the top controller of the Navigation stack.

UIApplicationDelegate Conformance

  • This opens a URL.

    Declaration

    Swift

    class func open(url inURL: URL, options inOptions: [UIApplication.OpenExternalURLOptionsKey : Any] = [:], completionHandler inClosure: ((Bool) -> Void)? = nil)

    Parameters

    url

    The URL to open.

    options

    The URLoptions.

    completionHandler

    The closure to be executed, upon completion of the open. It has one parameter, a Boolean, that is true, if the open was successful. This is always called in the main thread.

  • Called when the app has set itself up, and is about to start.

    Declaration

    Swift

    func application(_: UIApplication, didFinishLaunchingWithOptions: [UIApplication.LaunchOptionsKey : Any]?) -> Bool

    Parameters

    didFinishLaunchingWithOptions

    Launch options (also ignored).

    Return Value

    True (always).

  • Called to deliver the scene configuration for the connection.

    Declaration

    Swift

    func application(_: UIApplication, configurationForConnecting inConnectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration

    Parameters

    configurationForConnecting

    The session being connected.

    options

    Launch options (also ignored).

    Return Value

    A new instance of a default configuration for the scene.

  • Called when the application goes into the background.

    We use this to set the reload delay tracker.

    Declaration

    Swift

    func applicationDidEnterBackground(_: UIApplication)