Skip to content

Commit

Permalink
添加感谢仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfeng committed Mar 21, 2022
1 parent cc8155d commit 97211e7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,6 @@ dependencies {
```
第三步
将您的DialogFragment 或者dialog 实现 DialogController 接口
然后在 doShow 实现此方法
```
override fun doShow(fragmentManager: FragmentManager) {
show(fragmentManager, javaClass.simpleName)
}
```

```
override fun doDismiss(callback: DialogDismissCallback?) {
this.callback = callback
}
将 callback 接口设为变量
在 onDismiss 调用
override fun onDismiss(dialog: DialogInterface) {
super.onDismiss(dialog)
callback?.onDismiss()
}
```

## 使用时 ,在您的 Activity 或者Fragment中创建 DialogManager 单例

Expand Down

0 comments on commit 97211e7

Please sign in to comment.