package Ġcom . g vet ri . kotlin . vide oli brary . core Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ Ċ class ĠMain ViewModel Ġ: ĠViewModel () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġ_ is Playing LiveData Ġ= ĠMutable LiveData < Boolean >() ĊĊĠĠĠ Ġval Ġis Playing LiveData : ĠLive Data < Boolean > Ġ= Ġ_ is Playing LiveData ĊĊĠĠĠ Ġfun Ġis Playing (): ĠBoolean Ġ= Ġis Playing LiveData . value Ġ?: Ġfalse ĊĊĊĠĠĠ Ġfun Ġupdate Is Video Playing ( is Playing : ĠBoolean Ġ= Ġfalse ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ is Playing LiveData . value Ġ= Ġis Playing ĊĠĠĠ Ġ} Ċ }