Skip to content

Commit

Permalink
Added ApplicationLifecycle#destroy method
Browse files Browse the repository at this point in the history
  • Loading branch information
arkivanov committed Apr 8, 2024
1 parent 33179f5 commit b18e7cb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ class ApplicationLifecycle private constructor(
}
}

fun destroy() {
lifecycle.destroy()
}

private fun addObserver(name: NSNotificationName, block: (NSNotification?) -> Unit): NSObjectProtocol =
NSNotificationCenter.defaultCenter.addObserverForName(
name = name,
Expand Down

0 comments on commit b18e7cb

Please sign in to comment.