Interface IBNTLCruiserPageManager


  • public interface IBNTLCruiserPageManager
    • Method Detail

      • onCreate

        View onCreate​(Activity activity)
        获取百度地图红绿灯巡航 view
      • onStart

        void onStart()
        百度地图红绿灯巡航生命周期 onStart,需要在 Activity#onCreate() 或者 Fragment#onCreateView() 中调用
      • onResume

        void onResume()
        百度地图红绿灯巡航生命周期 onResume,需要在 Activity#onResume()或者 Fragment#onResume() 中调用
      • onPause

        void onPause()
        百度地图红绿灯巡航生命周期 onPause,需要在 Activity#onPause()或者 Fragment#onPause()中调用
      • onStop

        void onStop()
        百度地图红绿灯巡航生命周期 onStop,需要在Activity#onStop()或者 Fragment#onStop() 中调用
      • onDestroy

        void onDestroy()
        百度地图红绿灯巡航生命周期 onDestroy,需要在 Activity#onDestroy() 或者 Fragment#onDestroy() 中调用
      • onBackPressed

        boolean onBackPressed()
        点击回退按钮调用
      • onConfigurationChanged

        void onConfigurationChanged​(Configuration newConfig)
        百度地图红绿灯巡航生命周期 onConfigurationChanged,需要在 Activity.onConfigurationChanged 或者 Fragment.onConfigurationChanged 中调用
      • setStartByVoiceState

        void setStartByVoiceState​(IBNTLCruiserPageManager.TLCruiseVoiceState voiceState)
        设置进入红绿灯巡航时播报是否打开
        Parameters:
        voiceState - TLCruiseVoiceState.OPEN 播报打开,TLCruiseVoiceState.CLOSE 播报关闭
      • getStartByVoiceState

        IBNTLCruiserPageManager.TLCruiseVoiceState getStartByVoiceState()
        获取进入红绿灯巡航时的播报状态
        Returns:
        TLCruiseVoiceState.OPEN 播报打开,TLCruiseVoiceState.CLOSE 播报关闭
      • setTLCruiseViewConfig

        void setTLCruiseViewConfig​(BNTLCruiseViewConfig viewConfig)
        设置红绿灯巡航 UI 配置,包括视图中各个元素的显示状态和布局参数。 通过传入一个 BNTLCruiseViewConfig 实例,可以控制返回按钮、速度、语音、车道线、缩放、位置是否可见, 同时可以设置红绿灯巡航上层 UI 的内边距。
        Parameters:
        viewConfig - UI 配置
      • resetCarPoint

        void resetCarPoint()
        红绿灯巡航页面回到巡航态