@@ -0,0 +1,6 @@
|
||||
package com.mogo.service.entrance;
|
||||
|
||||
public interface IMogoEntranceAutopilotStatusClickListener {
|
||||
|
||||
void click();
|
||||
}
|
||||
@@ -68,10 +68,11 @@ public interface IMogoEntranceButtonController extends IProvider {
|
||||
* @param index
|
||||
* @return
|
||||
*/
|
||||
TextView getButton( ButtonIndex index );
|
||||
TextView getButton(ButtonIndex index);
|
||||
|
||||
/**
|
||||
* 添加低层级view,使用ViewGroup.addView(v,0)实现
|
||||
*
|
||||
* @param view 将要添加的view
|
||||
*/
|
||||
void addBottomLayerView(View view);
|
||||
@@ -79,65 +80,89 @@ public interface IMogoEntranceButtonController extends IProvider {
|
||||
/**
|
||||
* 添加低层级view,使用ViewGroup.addView(v,0)实现
|
||||
* 可指定x,y位置
|
||||
*
|
||||
* @param view 将要添加的view
|
||||
* @param x leftMargin
|
||||
* @param y topMargin
|
||||
* @param x leftMargin
|
||||
* @param y topMargin
|
||||
*/
|
||||
void addBottomLayerView(View view, int x, int y);
|
||||
|
||||
/**
|
||||
* 移除对应的底层view
|
||||
*
|
||||
* @param view 待移除view
|
||||
*/
|
||||
void removeBottomLayerView(View view);
|
||||
|
||||
/**
|
||||
* 添加左下角功能View,按顺序添加到最底端
|
||||
*
|
||||
* @param view 待添加view
|
||||
*/
|
||||
void addLeftFeatureView(View view);
|
||||
|
||||
/**
|
||||
* 移除左下角功能按钮
|
||||
*
|
||||
* @param view 待移除view
|
||||
*/
|
||||
void removeLeftFeatureView(View view);
|
||||
|
||||
/**
|
||||
* 设置vr模式下,左下角提示view
|
||||
*
|
||||
* @param view 目前是adas提示和求助
|
||||
*/
|
||||
void showLeftNoticeView(View view);
|
||||
|
||||
/**
|
||||
* 隐藏vr模式下,左下角提示view,需要与{@link #showLeftNoticeView(View)}成对使用
|
||||
*
|
||||
* @param view 待隐藏view
|
||||
*/
|
||||
void hideLeftNoticeView(View view);
|
||||
|
||||
/**
|
||||
* 根据noticeType添加左侧提示
|
||||
*
|
||||
* @param noticeType {@link #NOTICE_TYPE_SUDDENLY_BREAK}...
|
||||
* @param iconRes 本地 icon res
|
||||
* @param content 提示内容
|
||||
* @param iconRes 本地 icon res
|
||||
* @param content 提示内容
|
||||
*/
|
||||
void showLeftNoticeByType(int noticeType, int iconRes, String content);
|
||||
|
||||
/**
|
||||
* 移除noticeType,需要与{@link #showLeftNoticeByType(int, int, String)}成对使用
|
||||
*
|
||||
* @param noticeType {@link #NOTICE_TYPE_SUDDENLY_BREAK}...
|
||||
*/
|
||||
void hideLeftNoticeByType(int noticeType);
|
||||
|
||||
/**
|
||||
* 添加view状态回调监听
|
||||
*
|
||||
* @param listener 回调监听
|
||||
*/
|
||||
void addEntranceViewListener(IMogoEntranceViewListener listener);
|
||||
|
||||
/**
|
||||
* 移除view状态回调监听
|
||||
*
|
||||
* @param listener 回调监听
|
||||
*/
|
||||
void removeEntranceViewListener(IMogoEntranceViewListener listener);
|
||||
|
||||
/**
|
||||
* 添加entrance 自动驾驶状态监听
|
||||
*
|
||||
* @param listener {@link IMogoEntranceAutopilotStatusClickListener}
|
||||
*/
|
||||
void addEntranceAutopilotStatusClickListener(IMogoEntranceAutopilotStatusClickListener listener);
|
||||
|
||||
/**
|
||||
* 移除entrance 自动驾驶状态监听
|
||||
*
|
||||
* @param listener {@link IMogoEntranceAutopilotStatusClickListener}
|
||||
*/
|
||||
void removeEntranceAutopilotStatusClickListener(IMogoEntranceAutopilotStatusClickListener listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user