Timeline for InputMethodService with Jetpack Compose - ComposeView causes: Composed into the View which doesn't propagate ViewTreeLifecycleOwner
Current License: CC BY-SA 4.0
Post Revisions
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 28, 2025 at 21:11 | comment | added | CommonsWare |
This gist contains a more up-to-date example of how to create this sort of LifecycleOwner.
|
|
| Aug 1, 2022 at 10:03 | answer | added | Simsim | timeline score: 3 | |
| Apr 5, 2021 at 19:34 | answer | added | Mauro Banze | timeline score: 19 | |
| Jan 19, 2021 at 16:36 | vote | accept | Yannick | ||
| Jan 17, 2021 at 11:34 | answer | added | Yannick | timeline score: 15 | |
| Jan 17, 2021 at 0:30 | history | edited | Yannick | CC BY-SA 4.0 |
Try suggested solution
|
| Jan 16, 2021 at 23:48 | history | edited | Yannick | CC BY-SA 4.0 |
Add additional example
|
| Jan 16, 2021 at 23:38 | comment | added | CommonsWare |
The docs would appear to be wrong, insofar as you cannot "implement" ViewTreeLifecycleOwner. My guess is that they mean you need to call ViewTreeLifecycleOwner.set(), passing in the View and a LifecycleOwner. My guess is that you will need to copy the code from LifecycleService into yours, so your service itself is a LifecycleOwner that you can use.
|
|
| Jan 16, 2021 at 23:25 | history | asked | Yannick | CC BY-SA 4.0 |