Kotlin 中方法中实现Interface

DataReadyDelegate 是接口, isDataReady 是方法


inner class AccountInfoStateinternal constructor() : OnBoardingInfoState(object : DataReadyDelegate {

override val isDataReady: Boolean

get() =isAccountInfoReady }, true, true) {

override fun showViewRenderer(viewRenderer: OnBoardingStateViewRendererSelector) {

viewRenderer.selectViewRenderer(this)

}

}

推荐阅读更多精彩内容