-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial implementation of iOS bindings to Lifecycle #1043
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
/** | ||
* Callback which will be called with `true` when the app becomes active, and `false` when the app goes background | ||
*/ | ||
private val callback: (Boolean) -> Unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: rename
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename what exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, if I knew a specific good-fit name, I'd suggest it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onApplicationActiveStateChanged
?
compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/window/ios_lifecycle.png
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/window/ios_lifecycle.excalidraw
Outdated
Show resolved
Hide resolved
9f4cfa0
to
13d3bfd
Compare
...i/src/uikitMain/kotlin/androidx/compose/ui/window/ViewControllerBasedLifecycleOwner.uikit.kt
Outdated
Show resolved
Hide resolved
...i/src/uikitMain/kotlin/androidx/compose/ui/window/ViewControllerBasedLifecycleOwner.uikit.kt
Outdated
Show resolved
Hide resolved
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle. <img width="836" alt="ios_lifecycle" src="https://github.com/JetBrains/compose-multiplatform-core/assets/4167681/ec73ed26-5435-43e7-a4cf-5d3b9fe91693">
Initial implementation of iOS bindings to Lifecycle.