Merge branch 'develop' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core into feature/ONEAPP-3998
This commit is contained in:
commit
7426e5956e
@ -25,12 +25,14 @@
|
|||||||
return MVMCoreActionUtility.fatalClassCheck(object: MVMCoreObject.sharedInstance()?.sessionHandler)
|
return MVMCoreActionUtility.fatalClassCheck(object: MVMCoreObject.sharedInstance()?.sessionHandler)
|
||||||
}
|
}
|
||||||
|
|
||||||
public override init() {
|
nonisolated public override init() {
|
||||||
super.init()
|
super.init()
|
||||||
// Adds notifications for if the app entered the background/foreground.
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredBackground), name: UIApplication.didEnterBackgroundNotification, object: nil)
|
Task { @MainActor in
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
|
// Adds notifications for if the app entered the background/foreground.
|
||||||
resetStartTime()
|
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredBackground), name: UIApplication.didEnterBackgroundNotification, object: nil)
|
||||||
|
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user