Skip to content

ActivityDataBinding /FragmentDataBinding 可以考虑默认绑定 lifecycleOwner #8

Closed
@kakarrot

Description

如下:
return bind.apply {
viewBinding = this
viewBinding?.lifecycleOwner = (activity/fragment).lifecycleOwner //绑定生命周期
block?.invoke(this)
block = null
}

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions