package Ġcom . gun sch u . j its i _ meet Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . util . Log Ċ import Ġcom . gun sch u . j its i _ meet . J its i Me et Plugin . Companion . JIT SI _ PLUGIN _ TAG Ċ import Ġorg . j its i . meet . sdk . J its i Me et Activity Ċ import Ġorg . j its i . meet . sdk . J its i Me et Conference Options Ċ import Ġandroid . content . res . Configuration Ċ import Ġandroid . os . Handler ; Ċ import Ġandroid . os . Bundle Ċ Ċ /** Ċ Ġ* ĠActivity Ġextending ĠJ its i Me et Activity Ġin Ġorder Ġto Ġoverride Ġthe Ġconference Ġevents Ċ Ġ*/ Ċ class ĠJ its i Me et Plugin Activity : ĠJ its i Me et Activity () Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĊĠĠĠĠĠĠĠ Ġ@ Jvm Field ĊĠĠĠĠĠĠĠ Ġvar Ġapp Instance : ĠJ its i Me et Plugin Activity ? Ġ= Ġnull ĊĊĠĠĠĠĠĠĠ Ġ@ Jvm Static Ġfun Ġget App Instance (): ĠJ its i Me et Plugin Activity Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġapp Instance Ġas ĠJ its i Me et Plugin Activity ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠ Ġfun Ġlaunch Activity ( context : ĠContext ?, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġoptions : ĠJ its i Me et Conference Options ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvar Ġintent Ġ= ĠIntent ( context , ĠJ its i Me et Plugin Activity :: class . java ). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġaction Ġ= Ġ" org . j its i . meet . CON FER ENCE " ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġput Extra (" J its i Me et Conference Options ", Ġoptions ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontext ?. startActivity ( intent ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĉĊĉ ĉ override Ġfun Ġon Destroy () Ġ{ Ċĉĉ ĉ get J its i View (). leave (); Ċĉĉ ĉ super . on Destroy (); Ċĉ ĉ } ĊĉĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠ Ġapp Instance Ġ= Ġthis ; ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġvar Ġon Stop Called : ĠBoolean Ġ= Ġfalse ; ĊĊĠĠĠ Ġoverride Ġfun Ġon Picture In Picture Mode Changed ( ĠisIn Picture In Picture Mode : ĠBoolean , Ġnew Config : ĠConfiguration ?) ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Picture In Picture Mode Changed ( isIn Picture In Picture Mode , Ġnew Config ) ĊĊĠĠĠĠĠĠĠ Ġif Ġ( isIn Picture In Picture Mode Ġ== Ġfalse Ġ&& Ġon Stop Called ) ĊĠĠĠĠĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠPicture - in - Picture Ġmode Ġhas Ġbeen Ġclosed , Ġwe Ġcan Ġ( should Ġ! ) Ġend Ġthe Ġcall ĊĠĠĠĠĠĠĠĠĠĠĠ Ġget J its i View (). leave () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċĉ ĊĉĠ Ġoverride Ġfun Ġon User Leave Hint () Ġ{} ĊĊĠĠĠ Ġoverride Ġfun Ġon Stop () ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Stop () ĊĠĠĠĠĠĠĠ Ġon Stop Called Ġ= Ġtrue ; ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Resume () ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Resume () ĊĠĠĠĠĠĠĠ Ġon Stop Called Ġ= Ġfalse ; ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Conference Will Join ( data : ĠMutable Map < String , ĠAny > ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . d ( JIT SI _ PLUGIN _ TAG , ĠString . format (" J its i Me et Plugin Activity . on Conference Will Join : Ġ% s ", Ġdata )) ĊĠĠĠĠĠĠĠ ĠJ its i Me et Event Stream Handler . instance . on Conference Will Join ( data ) ĊĠĠĠĠĠĠĠ Ġsuper . on Conference Will Join ( data ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Conference Joined ( data : ĠMutable Map < String , ĠAny > ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . d ( JIT SI _ PLUGIN _ TAG , ĠString . format (" J its i Me et Plugin Activity . on Conference Joined : Ġ% s ", Ġdata )) ĊĠĠĠĠĠĠĠ ĠJ its i Me et Event Stream Handler . instance . on Conference Joined ( data ) ĊĠĠĠĠĠĠĠ Ġsuper . on Conference Joined ( data ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Conference Terminated ( data : ĠMutable Map < String , ĠAny > ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . d ( JIT SI _ PLUGIN _ TAG , ĠString . format (" J its i Me et Plugin Activity . on Conference Terminated : Ġ% s ", Ġdata )) ĊĠĠĠĠĠĠĠ ĠJ its i Me et Event Stream Handler . instance . on Conference Terminated ( data ) ĊĠĠĠĠĠĠĠ Ġsuper . on Conference Terminated ( data ) ĊĠĠĠ Ġ} Ċ } Ċ