opt
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.mogo.service.intent;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-09
|
||||
* <p>
|
||||
* 免唤醒语音监听
|
||||
*/
|
||||
public interface IMogoIntentListener {
|
||||
|
||||
/**
|
||||
* @param intentStr 广播action、语音 command
|
||||
* @param intent 意图
|
||||
*/
|
||||
void onIntentReceived( String intentStr, Intent intent );
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.mogo.service.intent;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-09
|
||||
* <p>
|
||||
* 免唤醒语音控制
|
||||
*/
|
||||
public interface IMogoIntentManager extends IProvider {
|
||||
|
||||
/**
|
||||
* 注册意图接收者
|
||||
*
|
||||
* @param intent
|
||||
*/
|
||||
public void registerIntentListener( String intent, IMogoIntentListener listener );
|
||||
|
||||
/**
|
||||
* 注册意图接收者
|
||||
*
|
||||
* @param intent
|
||||
*/
|
||||
public void unregisterIntentListener( String intent );
|
||||
|
||||
/**
|
||||
* 触发意图回调,各业务不用关心
|
||||
*
|
||||
* @param intentStr
|
||||
* @param intent
|
||||
*/
|
||||
public void invoke( String intentStr, Intent intent );
|
||||
}
|
||||
Reference in New Issue
Block a user