Repository navigation
is there any way to access ContentView‘s lifecycle? #6435
Answered
by
pictos
miao17game
asked this question in
Q&A
|
I need to unsubscribe my rx subscription when my custon control destroyed, but it seems no lifecycle like 'OnDestroyed' on ContentView. |
Answered by
pictos
Apr 23, 2022
Replies: 1 comment
|
You can listen to the handlerChanged event, if it's null you can assume that control is destroyed. Also, I belive there's a Loaded Unloaded event that you can use as well. |
0 replies
Answer selected by
miao17game
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can listen to the handlerChanged event, if it's null you can assume that control is destroyed. Also, I belive there's a Loaded Unloaded event that you can use as well.