tbruyelle/RxPermissions

how to support kotlin

Closed this issue · 6 comments

hey,my project use kotlin when I use this,it do not work well

      rxPermissions.request(android.Manifest.permission.WRITE_EXTERNAL_STORAGE).subscribe {
            if (!it) {
                Toast.makeText(this, "!!!", Toast.LENGTH_LONG).show()
            }
        }

it works fine with my kotlin project

thanks

How about to close this issue?))

Hi @tbruyelle,

I think this issue can be closed and also #311

indeed thx

请问一下大神么为啥 在kotlin中调用rxPermissions.request() 会爆红呢