AppDelegate

@UIApplicationMain
final class AppDelegate : UIResponder, UIApplicationDelegate

Delegate for the SoundFonts app.

  • The window used to present the app’s visual content on the device’s main screen.

    Declaration

    Swift

    var window: UIWindow?
  • Set the main view controller for the application. Initiates the configuration process for all of the components in the application.

    Declaration

    Swift

    func setMainViewController(_ mainViewController: MainViewController)

    Parameters

    mainViewController

    the view controller to use

  • Notification handler for when the application starts.

    Declaration

    Swift

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

    Parameters

    application

    the application that is running

    launchOptions

    the options used to start the application

  • Notification handler for when the application is given an SF2 URL to open.

    Declaration

    Swift

    func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool

    Parameters

    app

    the app that is running

    url

    the URL of the file to open

    options

    dictionary of options that may affect the opening (unused)

  • Notification handler for when the application is no longer the active foreground application. Stops audio output.

    Declaration

    Swift

    func applicationWillResignActive(_ application: UIApplication)

    Parameters

    app

    the app that is running

  • Notification handler for when the application is running in the background.

    Declaration

    Swift

    func applicationDidEnterBackground(_ application: UIApplication)

    Parameters

    app

    the app that is running

  • Notification handler for when the application is running in the foreground.

    Declaration

    Swift

    func applicationWillEnterForeground(_ application: UIApplication)

    Parameters

    app

    the app that is running

  • Notification handler for when the application becomes the active foreground application. Starts audio output.

    Declaration

    Swift

    func applicationDidBecomeActive(_ application: UIApplication)

    Parameters

    app

    the app that is running

  • Notification handler for when the application is being terminated. Stops audio output.

    Declaration

    Swift

    func applicationWillTerminate(_ application: UIApplication)

    Parameters

    app

    the app that is running