@ file : Inverse Binding Methods ( Inverse Binding Method ( type Ġ= ĠSlider :: class , Ġattribute Ġ= Ġ" value ")) Ċ package Ġorg . cc ci . g to . android . common . material . slider . databinding Ċ Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġandroidx . databinding . Inverse Binding Listener Ċ import Ġandroidx . databinding . Inverse Binding Method Ċ import Ġandroidx . databinding . Inverse Binding Methods Ċ import Ġandroidx . databinding . adapters . Listener Util Ċ import Ġcom . google . android . material . slider . Slider Ċ import Ġorg . cc ci . g to . android . common . material . components . R Ċ Ċ private Ġconst Ġval ĠVALUE _ ATTR _ CHANGED Ġ= Ġ" value Attr Changed " Ċ Ċ @ Binding Adapter ( VALUE _ ATTR _ CHANGED ) Ċ internal Ġfun ĠSlider . setValue Attr Changed Listener ( listener : ĠIn verse Binding Listener ?) Ġ= ĊĠĠĠ Ġlistener ?. let Ġ{ ĠSlider . On ChangeListener Ġ{ Ġ_, Ġ_, Ġ_ Ġ-> Ġlistener . onChange () Ġ} Ġ} ĊĠĠĠĠĠĠĠ Ġ. also Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠListener Util . track Listener ( this , Ġit , ĠR . id . g to _ support _ material _ components _ Slider _ value Attr Changed Listener ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ? . let Ġ{ Ġold Ġ-> Ġremove On ChangeListener ( old ) Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ? . let Ġ{ Ġadd On ChangeListener ( it ) Ġ} Ċ