class SomePresenter( val rootView:View, val model:SomeModel){ val button = rootView.findById(R.id.button) init{ // onPause()Ͱunsubscribe()͢Δඞཁ͕͋Δ button.setOnClick = model .loadData() .subscribe{ update(it) } } } class SomeActivity : Activity(){ override fun onCreate(bundle:Bundle){ setContentView(R.layout.activity) val rootView = findViewById(android.R.id.content) val presenter = SomePresenter(rootView, model) } }