Android code piecesπŸ“±πŸ’»
23 subscribers
39 photos
3 videos
6 links
Sample and useful code pieces and tricks for Android and Kotlin
Download Telegram
The
OnBackPressedDispatcher
controls how Back button events are dispatched to one or more
OnBackPressedCallback
objects.

https://developer.android.com/reference/androidx/activity/OnBackPressedCallback
In Kotlin a "receiver" is the instance on which an extension function is defined, or the type for a lambda with receiver.

https://kotlinlang.org/docs/reference/annotations.html