package Ġio . dol by . sdk . com ms . react native . android . activities Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġcom . facebook . react . React Activity Ċ import Ġcom . v ox e et . V ox e et SDK Ċ import Ġcom . v ox e et . sdk . events . error . Permission Ref used Event Ċ import Ġcom . v ox e et . sdk . events . error . Permission Ref used Event . Permission . CAMERA Ċ import Ġcom . v ox e et . sdk . events . error . Permission Ref used Event . Permission . MICRO PHONE Ċ import Ġcom . v ox e et . sdk . services . screen share . Request Screen Share Permission Event Ċ import Ġcom . v ox e et . sdk . services . screen share . Screen Capt urer Service Ċ import Ġio . dol by . sdk . com ms . react native . android . permissions . R ationale Information Holder Ċ import Ġio . dol by . sdk . com ms . react native . android . permissions . Screen Share Permissions Ċ import Ġio . dol by . sdk . com ms . react native . android . permissions . System Permissions Ċ import Ġorg . green robot . event bus . Subscribe Ċ import Ġorg . green robot . event bus . Thread Mode Ċ Ċ /** Ċ Ġ* Ġ[ Com ms API SDK AppCompatActivity ] Ġmanages Ġthe Ġcall Ġstate Ġfor Ġthe Ġin Ġcall Ġnotification Ċ Ġ* Ċ Ġ* ĠNote Ġ: Ġthis Ġclass Ġwill Ġbe Ġchanged Ġin Ġfuture Ġas Ġper Ġnative Ġversions Ġof Ġthe ĠSDK Ċ Ġ* Ċ Ġ* Ġso Ġthat Ġit Ġwill Ġbe Ġsh ipped Ġby Ġdefault , Ġnext Ġreact Ġnative Ġversions Ġwill Ġjust Ġneed Ġto Ġbe Ġ: Ċ Ġ* Ġ- Ġdeprecated Ċ Ġ* Ġ- Ġstate Ġin Ġthe Ġdocumentation Ġthat Ġthe ĠMainActivity Ġshould Ġoverride Ġthe Ġnew Ġclass Ġfrom Ġthe ĠSDK Ċ Ġ*/ Ċ open Ġclass ĠCom ms API SDK AppCompatActivity Ġ: ĠReact Activity () Ġ{ ĊĊĠ Ġprivate Ġvar Ġsystem Permissions : ĠSystem Permissions ? Ġ= Ġnull ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ Ġsystem Permissions Ġ= ĠSystem Permissions ( this ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Resume () Ġ{ ĊĠĠĠ Ġsuper . on Resume () ĊĠĠĠ ĠScreen Capt urer Service . register ( this ) ĊĠĠĠ ĠV ox e et SDK . instance (). register ( this ) ĊĠĠĠ ĠV ox e et SDK . screen Share (). consume Right sTo Screen Share () ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Pause () Ġ{ ĊĠĠĠ Ġ// stop Ġfetching Ġstats Ġif Ġany Ġpending ĊĠĠĠ Ġif Ġ(! V ox e et SDK . conference (). is Live ) Ġ{ ĊĠĠĠĠĠ ĠV ox e et SDK . local Stats (). stop Auto Fetch () ĊĠĠĠ Ġ} ĊĠĠĠ ĠV ox e et SDK . instance (). unregister ( this ) ĊĠĠĠ ĠScreen Capt urer Service . unregister Activity () ĊĠĠĠ Ġsuper . on Pause () ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĠĠĠ Ġsystem Permissions Ġ= Ġnull ĊĠĠĠ Ġsuper . on Destroy () ĊĠ Ġ} ĊĊĠ Ġ@ Subscribe ( thread Mode Ġ= ĠThread Mode . MAIN ) ĊĠ Ġfun Ġon Event ( event : ĠPermission Ref used Event ) Ġ{ ĊĠĠĠ Ġwhen Ġ( event . permission ) Ġ{ ĊĠĠĠĠĠ ĠCAM ERA , ĠMIC RO PHONE Ġ-> Ġsystem Permissions ?. request ( event . permission . permissions , ĠR ationale Information Holder ) ĊĠĠĠĠĠ Ġelse Ġ-> Ġ{ ĊĠĠĠĠĠĠĠ Ġ// Ġno - op ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Subscribe ( thread Mode Ġ= ĠThread Mode . MAIN ) ĊĠ Ġfun Ġon Event ( event : ĠRequest Screen Share Permission Event ) Ġ{ ĊĠĠĠ ĠScreen Share Permissions . request ( this ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Activity Result ( request Code : ĠInt , ĠresultCode : ĠInt , Ġdata : ĠIntent ?) Ġ{ ĊĠĠĠ Ġsuper . on Activity Result ( request Code , ĠresultCode , Ġdata ) ĊĠĠĠ ĠScreen Share Permissions . on Activity Result ( request Code , ĠresultCode , Ġdata ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Request Permissions Result ( request Code : ĠInt , Ġpermissions : ĠArray < String >, Ġgrant Results : ĠInt Array ) Ġ{ ĊĠĠĠ Ġsystem Permissions ?. on Request Result ( request Code , Ġpermissions , Ġgrant Results ) ĊĠĠĠ Ġsuper . on Request Permissions Result ( request Code , Ġpermissions , Ġgrant Results ) ĊĠ Ġ} Ċ } Ċ