opt
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package com.mogo.service.voice;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
import com.mogo.service.intent.IMogoIntentListener;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user