package Ġcom . son phil . can ad are calls ands afety alerts . presentation . notification Ċ Ċ import Ġandroidx . recyclerview . widget . Item Touch Helper Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠSon phil Ġon Ġ 1 3 - 0 2 - 2 0 . Ċ Ġ*/ Ċ Ċ class ĠSw ipe ToDelete Callback ( ĊĠĠĠ Ġprivate Ġval ĠviewModel : ĠNotification Keywords ViewModel Ċ ) Ġ: ĠItem Touch Helper . Simple Callback ( 0 , ĠItem Touch Helper . LEFT Ġor ĠItem Touch Helper . RIGHT ) Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġon Move ( ĊĠĠĠĠĠĠĠ Ġre cyclerView : ĠRecyclerView , ĊĠĠĠĠĠĠĠ ĠviewHolder : ĠRecyclerView . ViewHolder , ĊĠĠĠĠĠĠĠ Ġtarget : ĠRecyclerView . ViewHolder ĊĠĠĠ Ġ): ĠBoolean Ġ= Ġtrue ĊĊĠĠĠ Ġoverride Ġfun Ġon Sw ip ed ( view Holder : ĠRecyclerView . ViewHolder , Ġdirection : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel . delete Keyword At Position ( view Holder . adapter Position ) ĊĠĠĠ Ġ} Ċ } Ċ