package Ġabi 4 2 _ 0 _ 0 . expo . modules . permissions . request ers Ċ Ċ import Ġandroid . Manifest Ċ import Ġandroid . os . Bundle Ċ import Ġabi 4 2 _ 0 _ 0 . expo . modules . interfaces . permissions . Permissions Response Ċ import Ġabi 4 2 _ 0 _ 0 . expo . modules . interfaces . permissions . Permissions Status Ċ Ċ fun Ġparse Basic Location Permissions ( permissions Response : ĠMap < String , ĠPermissions Response >): ĠBundle Ġ{ ĊĠ Ġreturn ĠBundle (). apply Ġ{ ĊĠĠĠ Ġval Ġaccess F ine Location Ġ= Ġpermissions Response . getValue ( Manifest . permission . ACCESS _ F INE _ LOCATION ) ĊĠĠĠ Ġval Ġaccess Co arse Location Ġ= Ġpermissions Response . getValue ( Manifest . permission . ACCESS _ CO AR SE _ LOCATION ) ĊĠĠĠ Ġval Ġcan Ask Again Ġ= Ġaccess F ine Location . can Ask Again Ġ&& Ġaccess Co arse Location . can Ask Again ĊĠĠĠ Ġval Ġis Granted Ġ= Ġaccess Co arse Location . status Ġ== ĠPermissions Status . GRAN TED Ġ|| Ġaccess F ine Location . status Ġ== ĠPermissions Status . GRAN TED ĊĊĠĠĠ Ġput String ( Permissions Response . STATUS _ KEY , Ġwhen Ġ{ ĊĠĠĠĠĠ Ġaccess F ine Location . status Ġ== ĠPermissions Status . GRAN TED Ġ-> Ġ{ ĊĠĠĠĠĠĠĠ ĠPermissions Status . GRAN TED . status ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġaccess Co arse Location . status Ġ== ĠPermissions Status . GRAN TED Ġ-> Ġ{ ĊĠĠĠĠĠĠĠ ĠPermissions Status . GRAN TED . status ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġaccess F ine Location . status Ġ== ĠPermissions Status . DEN IED Ġ&& Ġaccess Co arse Location . status Ġ== ĠPermissions Status . DEN IED Ġ-> Ġ{ ĊĠĠĠĠĠĠĠ ĠPermissions Status . DEN IED . status ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġelse Ġ-> Ġ{ ĊĠĠĠĠĠĠĠ ĠPermissions Status . UN DE TERMIN ED . status ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ}) ĊĊĠĠĠ Ġput String ( Permissions Response . EXPI RES _ KEY , ĠPermissions Response . PERMISSION _ EXPI RES _ NE VER ) ĊĠĠĠ Ġput Boolean ( Permissions Response . CAN _ ASK _ AG AIN _ KEY , Ġcan Ask Again ) ĊĠĠĠ Ġput Boolean ( Permissions Response . GRAN TED _ KEY , Ġis Granted ) ĊĠ Ġ} Ċ } Ċ