This commit is contained in:
wangcongtao
2020-01-08 10:54:59 +08:00
parent 58803435f0
commit 46c713cdca
21 changed files with 304 additions and 0 deletions

View File

@@ -65,4 +65,9 @@ public class MogoServicePaths {
* 卡片控制
*/
public static final String PATH_CARD_MANAGER = "/cardmanager/api";
/**
* 管理 fragment
*/
public static final String PATH_FRAGMENT_MANAGER = "/fragmentmanager/api";
}

View File

@@ -0,0 +1,27 @@
package com.mogo.service.fragmentmanager;
import androidx.fragment.app.Fragment;
import com.alibaba.android.arouter.facade.template.IProvider;
/**
* @author congtaowang
* @since 2020-01-08
* <p>
* fragment 管理接口
*/
public interface IMogoFragmentManager extends IProvider {
/**
* 显示fragment并加入回退栈
*
* @param fragment 需要显示的fragment
* @param tag fragment的tag
*/
void push( Fragment fragment, String tag );
/**
* 将当前 fragment 出栈
*/
void pop();
}

View File

@@ -10,6 +10,7 @@ import androidx.fragment.app.Fragment;
import com.alibaba.android.arouter.facade.template.IProvider;
import com.mogo.map.listener.IMogoMapListener;
import com.mogo.map.location.IMogoLocationListener;
import com.mogo.map.marker.IMogoMarkerClickListener;
import com.mogo.map.navi.IMogoNaviListener;
/**
@@ -80,4 +81,11 @@ public interface IMogoModuleProvider extends IProvider {
* @return
*/
IMogoLocationListener getLocationListener();
/**
* marker 点击回调
*
* @return
*/
IMogoMarkerClickListener getMarkerClickListener();
}