This commit is contained in:
wangcongtao
2020-01-13 15:29:54 +08:00
parent ef8e4979d3
commit 565541496d
107 changed files with 270 additions and 328 deletions

View File

@@ -13,8 +13,8 @@ public interface IMogoVoiceListener {
/**
* 回调语音意图
*
* @param action 广播 action
* @param command 广播 command
* @param intent 意图
*/
void onIntentReceived( String action, Intent intent );
void onIntentReceived( String command, Intent intent );
}

View File

@@ -15,22 +15,22 @@ public interface IMogoVoiceManager extends IProvider {
/**
* 注册意图接收者
*
* @param action
* @param command
*/
void registerIntentListener( String action, IMogoVoiceListener listener );
void registerIntentListener( String command, IMogoVoiceListener listener );
/**
* 注册意图接收者
*
* @param action
* @param command
*/
void unregisterIntentListener( String action );
void unregisterIntentListener( String command );
/**
* 触发意图回调,各业务不用关心
*
* @param action
* @param command
* @param intent
*/
void invoke( String action, Intent intent );
void invoke( String command, Intent intent );
}

View File

@@ -1,6 +1,7 @@
package com.mogo.service.windowview;
import android.view.View;
import android.widget.FrameLayout;
import com.alibaba.android.arouter.facade.template.IProvider;
@@ -23,6 +24,16 @@ public interface IMogoWindowManager extends IProvider {
*/
void addView( int priority, View view, int x, int y, boolean movable );
/**
* 向window中添加指定的布局
*
* @param priority 优先级
* @param view 添加的实例
* @param params 布局参数
* @param movable 是否可移动(无效)
*/
void addView( int priority, View view, FrameLayout.LayoutParams params, boolean movable );
/**
* 移除对应的 view
*