This commit is contained in:
wangcongtao
2020-01-14 17:44:39 +08:00
parent 147bc5dc7d
commit 6acdfa3772
12 changed files with 93 additions and 18 deletions

View File

@@ -0,0 +1,12 @@
package com.mogo.service.cardmanager;
/**
* @author congtaowang
* @since 2020-01-14
* <p>
* 卡片切换监听
*/
public interface IMogoCardChangedListener {
void onSwitched( int position, String moduleName );
}

View File

@@ -16,4 +16,22 @@ public interface IMogoCardManager extends IProvider {
* @param cardType
*/
void switch2( String cardType );
/**
* 注册卡片切换监听
*/
void registerCardChangedListener( String tag, IMogoCardChangedListener listener );
/**
* 注销卡片监听
*/
void unregisterCardChangedListener( String tag );
/**
* 回调
*
* @param position 卡片位置
* @param moduleName 卡片名称
*/
void invoke( int position, String moduleName );
}

View File

@@ -1,7 +1,5 @@
package com.mogo.service.voice;
import android.content.Intent;
import com.mogo.service.intent.IMogoIntentListener;
/**

View File

@@ -1,8 +1,5 @@
package com.mogo.service.voice;
import android.content.Intent;
import com.mogo.service.intent.IMogoIntentListener;
import com.mogo.service.intent.IMogoIntentManager;
/**