You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
617 B
Kotlin
29 lines
617 B
Kotlin
package com.idormy.sms.forwarder.core.http.loader
|
|
|
|
import android.content.Context
|
|
import com.xuexiang.xhttp2.subsciber.impl.IProgressLoader
|
|
|
|
/**
|
|
* IProgressLoader的创建工厂实现接口
|
|
*
|
|
* @author xuexiang
|
|
* @since 2019-11-18 23:17
|
|
*/
|
|
interface IProgressLoaderFactory {
|
|
/**
|
|
* 创建进度加载者
|
|
*
|
|
* @param context
|
|
* @return
|
|
*/
|
|
fun create(context: Context?): IProgressLoader?
|
|
|
|
/**
|
|
* 创建进度加载者
|
|
*
|
|
* @param context
|
|
* @param message 默认提示
|
|
* @return
|
|
*/
|
|
fun create(context: Context?, message: String?): IProgressLoader?
|
|
} |