wait to finish
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
package com.mogo.service.module;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-24
|
||||
* <p>
|
||||
* 模块 UI 接口
|
||||
*/
|
||||
public interface IMogoModuleProvider extends IProvider {
|
||||
|
||||
/**
|
||||
* 创建卡片
|
||||
*
|
||||
* @param context
|
||||
* @return
|
||||
*/
|
||||
Fragment createFragment( Context context, Bundle data );
|
||||
|
||||
/**
|
||||
* 创建view
|
||||
*
|
||||
* @param context
|
||||
* @return
|
||||
*/
|
||||
default View createView( Context context ){
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模块唯一标识
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@NonNull
|
||||
String getModuleName();
|
||||
|
||||
/**
|
||||
* 是哪种类型的提供者
|
||||
* <p>
|
||||
* @return
|
||||
*/
|
||||
int getType();
|
||||
|
||||
/**
|
||||
* 获取模块对应 app 的包名
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
default String getAppPackage() {
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取对应模块 app 名称
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
default String getAppName() {
|
||||
return "";
|
||||
}
|
||||
|
||||
default void onDestroy(){
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user