Quellcode durchsuchen

更新函数注释

drake vor 3 Jahren
Ursprung
Commit
6f0d4d4aba

+ 2 - 1
net/src/main/java/com/drake/net/interfaces/NetDialogFactory.kt

@@ -8,7 +8,8 @@ import com.drake.net.R
 fun interface NetDialogFactory {
 
     /**
-     * 构建并返回一个Dialog
+     * 构建并返回Dialog. 当使用 scopeDialog 作用域时将会自动显示该对话框且作用域完成后关闭对话框
+     *
      * @param activity 请求发生所在的[FragmentActivity]
      */
     fun onCreate(activity: FragmentActivity): Dialog

+ 4 - 2
net/src/main/java/com/drake/net/interfaces/NetErrorHandler.kt

@@ -12,7 +12,8 @@ interface NetErrorHandler {
     companion object DEFAULT : NetErrorHandler
 
     /**
-     * 全局错误
+     * 全局的网络错误处理
+     *
      * @param e 发生的错误
      */
     fun onError(e: Throwable) {
@@ -41,7 +42,8 @@ interface NetErrorHandler {
     }
 
     /**
-     * 自动缺省页错误
+     * 当你使用包含缺省页功能的作用域中发生错误将回调本函数处理错误
+     *
      * @param e 发生的错误
      * @param view 缺省页, StateLayout或者PageRefreshLayout
      */