opt
This commit is contained in:
@@ -8,6 +8,7 @@ import com.mogo.service.analytics.IMogoAnalytics;
|
||||
import com.mogo.service.cardmanager.IMogoCardManager;
|
||||
import com.mogo.service.connection.IMogoSocketManager;
|
||||
import com.mogo.service.datamanager.IMogoDataManager;
|
||||
import com.mogo.service.entrance.IMogoEntranceButtonController;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.intent.IMogoIntentManager;
|
||||
@@ -170,4 +171,11 @@ public interface IMogoServiceApis extends IProvider {
|
||||
* @return
|
||||
*/
|
||||
IMogoLauncher getLauncherApi();
|
||||
|
||||
/**
|
||||
* 获取入口按钮控制器
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoEntranceButtonController getEntranceButtonController();
|
||||
}
|
||||
|
||||
@@ -160,4 +160,10 @@ public class MogoServicePaths {
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_LAUNCHER_API = "/launcher/api";
|
||||
|
||||
/**
|
||||
* 入口按钮
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String PATH_ENTRANCE_BUTTON_API = "/entrancebutton/api";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.service.entrance;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-04-16
|
||||
* <p>
|
||||
* 入口按钮顺序:从上到下
|
||||
*/
|
||||
public enum ButtonIndex {
|
||||
|
||||
/**
|
||||
* 第一个
|
||||
*/
|
||||
BUTTON1,
|
||||
|
||||
/**
|
||||
* 第二个
|
||||
*/
|
||||
BUTTON2;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.mogo.service.entrance;
|
||||
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-04-16
|
||||
* <p>
|
||||
* 入口按钮
|
||||
*/
|
||||
public interface IMogoEntranceButtonController extends IProvider {
|
||||
|
||||
/**
|
||||
* 获取入口按钮实例
|
||||
*
|
||||
* @param index
|
||||
* @return
|
||||
*/
|
||||
TextView getButton( ButtonIndex index );
|
||||
}
|
||||
Reference in New Issue
Block a user