.class public final Lcom/discord/utilities/viewcontroller/ViewDetachedFromWindowObservable; .super Ljava/lang/Object; .source "ViewDetachedFromWindowObservable.kt" # interfaces .implements Landroid/view/View$OnAttachStateChangeListener; # instance fields .field public final onDetachSubject:Lrx/subjects/BehaviorSubject; .annotation system Ldalvik/annotation/Signature; value = { "Lrx/subjects/BehaviorSubject<", "Lkotlin/Unit;", ">;" } .end annotation .end field # direct methods .method public constructor (Landroid/view/View;)V .locals 1 if-eqz p1, :cond_0 invoke-direct {p0}, Ljava/lang/Object;->()V invoke-static {}, Lrx/subjects/BehaviorSubject;->g0()Lrx/subjects/BehaviorSubject; move-result-object v0 iput-object v0, p0, Lcom/discord/utilities/viewcontroller/ViewDetachedFromWindowObservable;->onDetachSubject:Lrx/subjects/BehaviorSubject; invoke-virtual {p1, p0}, Landroid/view/View;->addOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V return-void :cond_0 const-string p1, "view" invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method # virtual methods .method public final observe()Lrx/Observable; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lrx/Observable<", "Lkotlin/Unit;", ">;" } .end annotation iget-object v0, p0, Lcom/discord/utilities/viewcontroller/ViewDetachedFromWindowObservable;->onDetachSubject:Lrx/subjects/BehaviorSubject; const-string v1, "onDetachSubject" invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V return-object v0 .end method .method public onViewAttachedToWindow(Landroid/view/View;)V .locals 0 return-void .end method .method public onViewDetachedFromWindow(Landroid/view/View;)V .locals 1 iget-object p1, p0, Lcom/discord/utilities/viewcontroller/ViewDetachedFromWindowObservable;->onDetachSubject:Lrx/subjects/BehaviorSubject; sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit; invoke-virtual {p1, v0}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V return-void .end method