opt
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.mogo.service.fragmentmanager;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-08
|
||||
* <p>
|
||||
* fragment 栈发生变化
|
||||
*/
|
||||
public interface FragmentStackTransactionListener {
|
||||
|
||||
/**
|
||||
* @param size 栈内的fragment数量
|
||||
*/
|
||||
void onTransaction( int size );
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.mogo.service.fragmentmanager;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
@@ -33,4 +35,26 @@ public interface IMogoFragmentManager extends IProvider {
|
||||
* 退出栈中所有fragment
|
||||
*/
|
||||
void clearAll();
|
||||
|
||||
/**
|
||||
* 主页注册栈变化监听
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
void registerMainFragmentStackTransactionListener( FragmentStackTransactionListener listener );
|
||||
|
||||
/**
|
||||
* 其他注册栈变化监听
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
void addMainFragmentStackTransactionListener( FragmentStackTransactionListener listener );
|
||||
|
||||
/**
|
||||
* 初始化
|
||||
*
|
||||
* @param activity
|
||||
* @param containerId
|
||||
*/
|
||||
void init( AppCompatActivity activity, int containerId );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user