package Ġio . android al atan . view . event . legacy . flow . view Ċ Ċ import Ġio . android al atan . view . event . api . view . On Focus ChangeEvent Ċ import Ġkotlinx . coroutines . channels . await Close Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . callback Flow Ċ import Ġkotlinx . coroutines . flow . distinct Until Changed Ċ Ċ fun ĠOn Focus ChangeEvent . on Focus Change As Flow (): ĠFlow < Boolean > Ġ{ ĊĠĠĠ Ġreturn Ġcallback Flow Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcallback Ġ= ĠOn Focus ChangeEvent . Callback Ġ{ Ġis Focused Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtry Send ( is Focused ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġregister On Focus ChangeEvent ( callback ) ĊĊĠĠĠĠĠĠĠ Ġawait Close Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġunregister On Focus ChangeEvent ( callback ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ. distinct Until Changed () Ċ }