package Ġbr . com . is ai as . img . utils Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . View Ċ import Ġandroid . view . input method . Input Method Manager Ċ import Ġandroidx . annotation . String Res Ċ import Ġcom . google . android . material . sn ackbar . Snackbar Ċ Ċ fun ĠView . hide Keyboard () Ġ{ ĊĠĠĠ Ġval Ġimm Ġ= Ġcontext . getSystem Service ( Context . INPUT _ METHOD _ SERVICE ) Ġas ĠInput Method Manager ĊĠĠĠ Ġimm . hide Soft Input From Window ( window Token , Ġ 0 ) Ċ } Ċ Ċ fun ĠView . long Sn ackBar (@ String Res Ġres Id : ĠInt ){ ĊĠĠĠ ĠSn ackbar . make ( this , Ġres Id , ĠSn ackbar . LENGTH _ LONG ). show () Ċ }