package Ġio . dol by . sdk . com ms . react native . services Ċ Ċ import Ġcom . facebook . react . bridge . React ApplicationContext Ċ import Ġcom . facebook . react . bridge . React Context Base Java Module Ċ import Ġcom . facebook . react . bridge . React Method Ċ import Ġcom . v ox e et . sdk . services . Conference Service Ċ import Ġcom . v ox e et . sdk . services . Recording Service Ċ import Ġio . dol by . sdk . com ms . react native . mapper . Recording Mapper Ċ import Ġio . dol by . sdk . com ms . react native . utils . Promises Ċ import Ġio . dol by . sdk . com ms . react native . utils . Promises . forward Ċ import Ġio . dol by . sdk . com ms . react native . utils . Promises . reject If False Ċ import Ġio . dol by . sdk . com ms . react native . utils . Promises . reject If Null Ċ import Ġio . dol by . sdk . com ms . react native . utils . Promises . then Value Ċ import Ġio . dol by . sdk . com ms . react native . utils . React Promise Ċ Ċ /** Ċ Ġ* ĠThe ĠRN Recording Service Module Ġallows Ġan Ġapplication Ġto Ġrecord Ġcon fer ences Ġby Ġusing Ġthe Ġ[ start ] Ġand Ġ[ stop ] Ġmethods Ġthat Ġturn Ġthe Ġrecording Ġon Ġand Ġoff . Ċ Ġ* Ċ Ġ* Ġ@ constructor Ċ Ġ* ĠCreates Ġa Ġbridge Ġwrapper Ġfor Ġ[ Recording Service ]. Ċ Ġ* Ċ Ġ* Ġ@ param Ġconference Service Ġ[ Conference Service ] Ġform ĠAndroid ĠSDK Ċ Ġ* Ġ@ param Ġrecording Service Ġ Ġ[ Recording Service ] Ġfrom ĠAndroid ĠSDK Ċ Ġ* Ġ@ param Ġreact Context ĠĠĠĠĠ Ġreact Ġcontext Ċ Ġ*/ Ċ class ĠRN Recording Service Module ( ĊĠ Ġprivate Ġval Ġconference Service : ĠConference Service , ĊĠ Ġprivate Ġval Ġrecording Service : ĠRecord ing Service , ĊĠ Ġreact Context : ĠReact ApplicationContext , ĊĠ Ġprivate Ġval Ġrecording Mapper : ĠRecord ing Mapper Ċ ) Ġ: ĠReact Context Base Java Module ( react Context ) Ġ{ ĊĊĠ Ġoverride Ġfun ĠgetName (): ĠString Ġ= Ġ" Com ms API Recording Service Module " ĊĊĠ Ġ/** ĊĠĠ Ġ* ĠStarts Ġrecording Ġa Ġconference . ĊĠĠ Ġ* ĊĠĠ Ġ* Ġ@ param Ġpromise Ġreturns Ġnull ĊĠĠ Ġ*/ ĊĠ Ġ@ React Method ĊĠ Ġfun Ġstart ( promise : ĠReact Promise ) Ġ{ ĊĠĠĠ Ġrecording Service . start () ĊĠĠĠĠĠ Ġ. reject If False Ġ{ Ġ" Start Ġrecording Ġoperation Ġfailed " Ġ} ĊĠĠĠĠĠ Ġ. forward ( promise ) ĊĠ Ġ} ĊĊĠ Ġ/** ĊĠĠ Ġ* ĠSto ps Ġrecording Ġa Ġconference . ĊĠĠ Ġ* ĊĠĠ Ġ* Ġ@ param Ġpromise Ġreturns Ġnull ĊĠĠ Ġ*/ ĊĠ Ġ@ React Method ĊĠ Ġfun Ġstop ( promise : ĠReact Promise ) Ġ{ ĊĠĠĠ Ġrecording Service . stop () ĊĠĠĠĠĠ Ġ. reject If False Ġ{ Ġ" Stop Ġrecording Ġoperation Ġfailed " Ġ} ĊĠĠĠĠĠ Ġ. forward ( promise ) ĊĠ Ġ} ĊĊĠ Ġ/** ĊĠĠ Ġ* ĠReturns Ġinformation Ġabout Ġthe Ġcurrent Ġrecording . ĠUse Ġthis Ġaccessor Ġif Ġyou Ġwish Ġto Ġreceive Ġinformation Ġthat Ġis Ġavailable Ġin Ġthe ĠRecord ing Ġobject , ĊĠĠ Ġ* Ġsuch Ġas Ġthe ĠID Ġof Ġthe Ġparticipant Ġwho Ġstarted Ġthe Ġrecording Ġor Ġthe Ġtimestamp Ġthat Ġinform s Ġwhen Ġthe Ġrecording Ġwas Ġstarted . ĊĠĠ Ġ* ĊĠĠ Ġ* Ġ@ param Ġpromise Ġreturn Ġcurrent Ġrecording Ġinformation Ġif Ġrecording Ġis Ġstarted , Ġreject s Ġotherwise ĊĠĠ Ġ*/ ĊĠ Ġ@ React Method ĊĠ Ġfun Ġcurrent ( promise : ĠReact Promise ) Ġ{ ĊĠĠĠ ĠPromise s . promise ( conference Service . conference ?. recording Information ) Ġ{ Ġ" Can 't Ġget Ġcurrent Ġrecording Ġinformation " Ġ} ĊĠĠĠĠĠ Ġ. then Value ( recording Mapper :: to RN ) ĊĠĠĠĠĠ Ġ. reject If Null () ĊĠĠĠĠĠ Ġ. forward ( promise ) ĊĠ Ġ} Ċ } Ċ