RiValT_AppDelegate
@main
@MainActor
class RiValT_AppDelegate : UIResponder, UIApplicationDelegate
This is the app delegate for the main app.
-
Accessor for this instance
Declaration
Swift
@MainActor static var appDelegateInstance: RiValT_AppDelegate? -
This contains the iOS app instance of the Watch Delegate class.
“There can only be one.” - Connor MacLeod
Declaration
Swift
@MainActor var watchDelegate: RiValT_WatchDelegate -
This is the shared timer model instance. We get it from the Watch Delegate instance.
Declaration
Swift
@MainActor var timerModel: TimerModel { get } -
Easy access to the root-level nav controller (the multi-timer Group Editor Screen).
Declaration
Swift
@MainActor weak var groupEditorController: RiValT_GroupEditor_ViewController? -
Called when the application has set up, and is preparing to “go live.”
Declaration
Swift
@MainActor func application(_ inApplication: UIApplication, didFinishLaunchingWithOptions: [UIApplication.LaunchOptionsKey : Any]?) -> BoolParameters
inApplicationThe application instance that this is delegated to (ignored).
didFinishLaunchingWithOptionsThe launch options (ignored)
Return Value
True (all the time).
-
This updates the stored timer model.
Declaration
Swift
@MainActor func updateSettings()
-
Returns a new scene configuration.
Declaration
Swift
@MainActor func application(_ inApplication: UIApplication, configurationForConnecting inConnectingSceneSession: UISceneSession, options inOptions: UIScene.ConnectionOptions) -> UISceneConfigurationParameters
inApplicationThe application instance that this is delegated to (ignored).
inConnectingSceneSessionThe session we’re generating a scene for.
inOptionsThe connection options (ignored).
Return Value
A new scene configuration for the session.
-
A command can operate only on the foreground screen the main-device user can operate.
Declaration
Swift
@MainActor private var remoteController: UIViewController? { get } -
The host screen used to sample complication state, including beneath a presented controller.
Declaration
Swift
@MainActor private var complicationController: UIViewController? { get } -
Whether the countdown slider is being dragged, so the host can defer priority complication transfers.
Declaration
Swift
@MainActor var isScrubbingComplicationTimer: Bool { get } -
Read the active screen and selected timer together, on the main thread.
Declaration
Swift
@MainActor func remoteSnapshot(forComplication: Bool = false) -> RiValT_WatchDelegate.Snapshot -
Run an accepted remote command through the same actions used on the main device.
Declaration
Swift
@MainActor func performRemoteCommand(_ command: RiValT_WatchDelegate.TimerOperation) -> Bool
View on GitHub
Install in Dash