opt
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user