Skip to content

System Settings Related

API Overview

ReturnMethodDescription
StringgetSerialNumber()Get temi's Serial Number
BatteryDatagetBatteryData()Get temis's Battery information
voidshowTopBar()Show Top Bar
voidhideTopBar()Hide Top Bar
voidshowAppList()Show App List
booleanisHardButtonsDiabled()Is Hard Buttons disabled
voidsetHardButtonsDisabled(boolean disable)Disable/Enable Hard Buttons
booleangetPrivacyMode()Is Privacy Mode on
voidsetPrivacyMode(boolean on)Turn on/off Privacy Mode
StringgetLauncherVersion()Get the version of Launcher
StringgetRoboxVersion()Get the version of Robox
voidtoggleWakeup()Disable(Enable) wake-up
booleanisWakeupDisabled()Check is wake-up disabled
voidtoggleNavigationBillboard()Hide(show) billboard during go to
booleanisNavigationBillboardDisabled()Check is billboard invisible during go to
voidsetTopBadgeEnabled(boolean enabled)Enable(Disable) top badge
booleanisTopBadgeEnabled()Check is top badge enabled
voidsetAutoReturnOn(boolean on)Turn on(off) auto-return
booleanisAutoReturnOn()Check is auto-return on
voidsetVolume(int volume)Set system volume
intgetVolume()Get system volume
voidsetNavigationSafety(SafetyLevel level)Set obstacles avoidance sensitivity level of navigation
SafetyLevelgetNavigationSafety()Get obstacles avoidance sensitivity level of navigation
voidsetGoToSpeed(SpeedLevel level)Set speed level of go-to
SpeedLevelgetGoToSpeed()Get speed level of go-to
SafetyLevelgetNavigationSafety()Get obstacles avoidance sensitivity level of navigation
intsetFollowSpeed(SpeedLevel level)Set speed level of follow
SpeedLevelgetFollowSpeed()Get speed level of follow
intsetMinimumObstacleDistance()set minimum obstacle distance
intminimumObstacleDistance()Get minimum obstacle distance
voidrestart()Restart temi
voidstartPage(Page page)Start system internal page
voidsetLocked(boolean locked)Enable(disable) protection by password
booleanisLocked()Check is protection enabled
voidmuteAlexa()Mute Alexa's microphone
voidshutdownShutdown temi
voidsetSoundMode(SoundMode soundMode)Set the mode of sound
voidsetHardButtonMode(HardButton type, HardButton.Mode mode)Set mode for the specific hard button
HardButton.ModegetHardButtonMode(HardButton type)Get the mode of the specific hard button
HardButton.StatusgetButtonStatus(HardButton type)Get the status of the specific hard button
StringgetNickName()Get temi's nick name
voidsetMode(Mode mode)Set system mode
ModegetMode()Get system mode
Map<String, Boolean>getSupportedLatinKeyboards()Get all supported Latin keyboards and their enabled status.
voidenabledLatinKeyboards(List<String>)Enable the required Latin keyboard
voidsetGroundDepthCliffDetectionEnabled(boolean enabled)Enable(Disable) ground depth sensor
booleanisGroundDepthCliffDetectionEnabled()Check is ground depth sensor enabled
booleanhasCliffSensor()Check if temi has cliff sensor
voidsetCliffSensorMode(CliffSensorMode cliffSensorMode)Set the mode of cliff sensor
CliffSensorModegetCliffSensorMode()Check the mode of cliff sensor
voidsetHeadDepthSensitivity(SensitivityLevel sensitivityLevel)Set the level of the head depth sensitivity
SensitivityLevelgetHeadDepthSensitivity()Get the level of the head depth sensitivity
voidsetFrontTOFEnabled(boolean enabled)Enable(Disable) front TOF sensor
booleanisFrontTOFEnabled()Check is front TOF sensor enabled
voidsetBackTOFEnabled(boolean enabled)Enable(Disable) back TOF sensor
booleanisBackTOFEnabled()Check is back TOF sensor enabled
booleanisStandByOn()Get StandBy status
intstartStandBy()Start StandBy
intstopStandBy()Stop StandBy with optional password
intenableStandBy(Boolean enabled, String password)Turn ON/OFF StandBy Mode
HomeScreenModegetHomeScreenMode()Get current home screen mode
InterfaceDescription
OnBatteryStatusChangedListenerBattery Data Status Changed listener
OnPrivacyModeChangedListenerPrivacy Mode Changed listener
OnDisabledFeatureListUpdatedListenerDisabled features list updated listener
OnButtonStatusChangedListenerHard button status listener
ModelDescription
BatteryDataBattery Data
SafetyLevelObstacles avoidance sensitivity level
SpeedLevelGo to speed level
PageSystem internal page
SoundModeSound mode
HardButton.ModeHard button mode
HardButton.StatusHard button status
ModeSystem mode
CliffSensorModeThe mode of cliff sensor
SensitivityLevelSensitivity level
HomeScreenModeHome Screen Mode

Methods

getSerialNumber()

Use this method to fetch temi's serial number. This method can be used if you need to use a unique identifier for your temi.

  • Return

    TypeDescription
    Stringtemi's serial number
  • Prototype

    java
    String getSerialNumber();
  • Required permissions

    None.

  • Support from

    0.10.43


getBatteryData()

Use this method to manually request information on temi's battery. This information includes: Battery percentage and charging status.

  • Return

    TypeDescription
    BatteryDataBattery data
  • Prototype

    java
    BatteryData getBatteryData();
  • Required permissions

    None.

  • Support from

    0.10.43


showTopBar()

Use this method to manually request to show temi's top bar.

  • Prototype

    java
    void showTopBar();
  • Required permissions

    None.

  • Support from

    0.10.43


hideTopBar()

Use this method to manually request to hide temi's top bar

  • Prototype

    java
    void hideTopBar();
  • Required permissions

    None.

  • Support from

    0.10.43


showAppList()

Use this method to manually request to show temi's all apps.

  • Prototype

    java
    void showAppList();
  • Required permissions

    None.

  • Support from

    0.10.36


getPrivacyMode()

Use this method to get temi's privacy mode status.

  • Return

    TypeDescription
    booleantrue if privacy mode is on, false otherwise
  • Prototype

    java
    boolean getPrivacyMode();
  • Required permissions

    None.

  • Support from

    0.10.53


setPrivacyMode()

Use this method to set the status programmatically.

  • Parameters

    ParameterTypeDescription
    onbooleantrue to turn on privacy mode, false to turn off
  • Prototype

    java
    void setPrivacyMode(boolean on);
  • Required permissions

Selected Kiosk (Before 129 version), SETTINGS.

  • Support from

    0.10.53


isHardButtonsDisabled()

Use this method to get whether the hardware button is currently disabled.

  • Return

    TypeDescription
    booleantrue if hard buttons is disabled, false otherwise
  • Prototype

    java
    boolean isHardButtonsDisabled();
  • Required permissions

    None.

  • Support from

    0.10.6


setHardButtonsDisabled()

Use this method to disable or enable hard buttons.

  • Parameters

    ParameterTypeDescription
    disablebooleantrue to disable the hard buttons, false to enable hard buttons
  • Prototype

    java
    void setHardButtonsDisabled(boolean disable);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.6


getHardButtonMode()

Use this method to get the mode of the specific hard button.

  • Parameters

    ParameterTypeDescription
    typeHardButtonHard button type, [HardButton.MAIN], [HardButton.POWER], [HardButton.VOLUME]
  • Return

    TypeDescription
    HardButton.ModeThe mode of the specific hard button
  • Prototype

    java
    HardButton.Mode getHardButtonMode();
  • Required permissions

    None.

  • Support from

    0.10.77


setHardButtonMode()

Use this method to set hard button mode for the specific hard button.

  • Parameters

    ParameterTypeDescription
    typeHardButtonType of the specific hard button
    modeHardButton.ModeThe mode of the specific hard button(ENABLED, DISABLED, MAIN_BLOCK_FOLLOW)
  • Prototype

    java
    void setHardButtonMode(HardButton type, HardButton.Mode mode);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.77


getHardButtonStatus()

Use this method to get the status of the specific hard button.

  • Parameters

    ParameterTypeDescription
    typeHardButtonHard button type, [HardButton.EMERGENCY_STOP]
  • Return

    TypeDescription
    HardButton.StatusThe status of the specific hard button
  • Prototype

    java
    HardButton.Status getHardButtonStatus();
  • Required permissions

    None.

  • Support from

    1.134.0


getLauncherVersion()

Use this method to get the version of Launcher.

  • Return

    TypeDescription
    StringThe version of Launcher
  • Prototype

    java
    String getLauncherVersion();
  • Required permissions

    None.

  • Support from

    0.10.65


getRoboxVersion()

Use this method to get the version of Robox.

  • Return

    TypeDescription
    StringThe version of Robox
  • Prototype

    java
    String getRoboxVersion();
  • Required permissions

    None.

  • Support from

    0.10.65


toggleWakeup()

In kiosk mode you have the option of toggling the wakeup trigger on and off to your liking.

  • Parameters

    ParameterTypeDescription
    disabledbooleanSet true(false) to disable(enable)
  • Prototype

    java
    void toggleWakeup(boolean disabled);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.44


isWakeupDisabled()

Check wheather wake-up is disabled.

  • Return

    TypeDescription
    booleantrue(false) means disabled(enabled)
  • Prototype

    java
    boolean isWakeupDisabled();
  • Required permissions

    None.

  • Support from

    0.10.70


toggleNavigationBillboard()

In kiosk mode you have the option of toggling the visibility of the navigation billboard when you perform goTo commands.

  • Parameters

    ParameterTypeDescription
    disabledbooleanSet true(false) to hide(show)
  • Prototype

    java
    void toggleNavigationBillboard(boolean disabled);
  • Required permissions

    Selected Kiosk (Before 129 version),Settings

  • Support from

    0.10.44


isNavigationBillboardDisabled()

Check wheather navigation billboard is invisible.

  • Return

    TypeDescription
    booleantrue(false) means invisible(visible)
  • Prototype

    java
    boolean isNavigationBillboardDisabled();
  • Required permissions

    None.

  • Support from

    0.10.70


setTopBadgeEnabled()

Enable(Disable) top green badge. When badge is enabled, the movement status will be displayed in the top badge in real time when following, navigating, etc.

  • Parameters

    ParameterTypeDescription
    enabledbooleanSet true(false) to enable(disable) top badge
  • Prototype

    java
    void setTopBadgeEnabled(boolean enabled);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.70


isTopBadgeEnabled()

Check wheather top badge is enabled. Enabled is as the default.

  • Return

    TypeDescription
    booleantrue(false) means enabled(disabled)
  • Prototype

    java
    boolean isTopBadgeEnabled();
  • Required permissions

    None.

  • Support from

    0.10.70


setAutoReturnOn()

Enable(disable) auto return. With Auto Return ON, temi will return to one of your locations after a predefined amount of time. How to set up in Launcher: Settings > General > Auto Return > Duration or Locations.

  • Parameters

    ParameterTypeDescription
    onbooleanSet true(false) to turn on(off) auto return
  • Prototype

    java
    void setAutoReturnOn(boolean on);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.70


isAutoReturnOn()

Check wheather auto return is on. Off is as the default.

  • Return

    TypeDescription
    booleanture(false) means auto return is on(off)
  • Prototype

    java
    boolean isAutoReturnOn();
  • Required permissions

    None.

  • Support from

    0.10.70


setVolume()

Set the volume of system, the value range is 0-10. In the system, you can adjust the volume by touching the "+" and "-" buttons at the top of head, or by sliding up from the bottom edge of the screen to pop up the volume and brightness adjustment sliders, and sliding the volume adjustment slider left and right to adjust the volume.

  • Parameters

    ParameterTypeDescription
    volumeintvolume
  • Prototype

    java
    void setVolume(int volume);
  • Required permissions

    Settings

  • Support from

    0.10.70


getVolume()

Get the current system volume, the range is 0-10.

  • Return

    TypeDescription
    intCurrent volume
  • Prototype

    java
    int getVolume();
  • Required permissions

    None.

  • Support from

    0.10.70


setNavigationSafety()

Set the sensitivity level of obstacle avoidance during navigation. How to set in Launcher: Settings > Navigation > Obstacle avoidance sensitivity.

  • Parameters

    ParameterTypeDescription
    levelSafetyLevelObstacle avoidance sensitivity level
  • Prototype

    java
    void setNavigationSafety(SafetyLevel level);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.70


getNavigationSafety()

Get current navigation safety level.

  • Return

    TypeDescription
    SafetyLevelCurrent obstacle avoidance sensitivity level
  • Prototype

    java
    SafetyLevel getNavigationSafety();
  • Required permissions

    None.

  • Support from

    0.10.70


setGoToSpeed()

Set speed level of go to. How to set in Launcher: Launcher > Navigation > “Go To” configuration > Speed Control.

  • Parameters

    ParameterTypeDescription
    levelSpeedLevelSpeed level
  • Prototype

    java
    void setGoToSpeed(SpeedLevel level);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.70


getGoToSpeed()

Get the speed level of go to.

  • Return

    TypeDescription
    SpeedLevelCurrent speed level of go to
  • Prototype

    java
    SpeedLevel getGoToSpeed();
  • Required permissions

    None.

  • Support from

    0.10.70


setFollowSpeed()

Set speed level of follow.

  • Parameters

    ParameterTypeDescription
    levelSpeedLevelSpeed level
  • Return

    TypeDescription
    int0 not support by current launcher
    200 success
    400 invalid parameter
    403 SETTINGS Permission required
  • Prototype

    java
    int setFollowSpeed(SpeedLevel level);
  • Required permissions

    Settings

  • Support from

    1.135.1


getFollowSpeed()

Get the speed level of follow.

  • Return

    TypeDescription
    SpeedLevelCurrent speed level of follow
  • Prototype

    java
    SpeedLevel getFollowSpeed();
  • Required permissions

    None.

  • Support from

    1.135.1

setMinimumObstacleDistance()

Set minimum obstacle distance to add more safe margin in navigation when you robot is wider than normal because of some add-ons.

  • Parameters

    ParameterTypeDescription
    valueintValue of distance in meters, range from 0 to 100, step by 5
  • Return

    The value that was set as integer.

    Return 0 may stand for failure

  • Prototype

    java
    int setMinimumObstacleDistance(int value);
  • Required permissions

    Settings

  • Support from

    1.131.4


minimumObstacleDistance()

Get value of minimum obstacle distance.

  • Return

    TypeDescription
    intDistance in meters, or error code 400 or 403, if invalid argument or permission required.
  • Prototype

    java
    int minimumObstacleDistance();
  • Required permissions

    None.

  • Support from

    1.131.4

restart()

Using this method to restart temi.

  • Prototype

    java
    void restart();
  • Required permissions

    Selected Kiosk

  • Support from

    0.10.72


startPage()

Using this method to start system internal page.

  • Parameters

    ParameterTypeDescription
    pagePageSystem page
  • Prototype

    java
    void startPage(Page page);
  • Required permissions

    None.

  • Support from

    0.10.72


setLocked()

Using this method to enable(disable) protection by password.

  • Parameters

    ParameterTypeDescription
    lockedbooleanSet true(false) to enable(disable) protection
  • Prototype

    java
    void setLocked(boolean);
  • Required permissions

    Settings

  • Support from

    0.10.74


isLocked()

Check whether the protection by password is on.

  • Return

    TypeDescription
    booleanture(false) means protection by password is enabled(disabled)
  • Prototype

    java
    boolean isLocked();
  • Required permissions

    None.

  • Support from

    0.10.74


muteAlexa()

Using this method to mute Alexa's microphone. The microphone resource will be occupied when the assistant Alexa is selected. So using this to release the microphone if you want to use that in your App.

  • Prototype

    java
    void muteAlexa();
  • Support from

    0.10.75

shutdown()

Using this method to shutdown temi.

  • Prototype

    java
    void shutdown();
  • Required permissions

    Selected Kiosk

  • Support from

    0.10.77


setSoundMode()

Use this method to set the sound mode(NORMAL, VIDEO_CALL) that is for improving the user experience of sound in the video call scenario.

  • Parameters

    ParameterTypeDescription
    soundModeSoundModeThe sound mode to be set
  • Prototype

    java
    void setSoundMode(SoundMode soundMode);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.77

  • Note

    To improve user experience, if you set the sound mode to video call mode when you start your own video call application, it is recommended to switch the sound mode back to normal mode after ending the video call (NORMAL).


getNickName()

Use this method to get the nick name of temi.

  • Return

    TypeDescription
    Stringtemi's nick name
  • Prototype

    java
    String getNickName();
  • Required permissions

    None.

  • Support from

    0.10.77


setMode()

Use this method to set temi's system mode(Default, Greet, Privacy). You can also set the mode manually in Settings > Modes.

  • Parameters

    ParameterTypeDescription
    modeModeSystem mode
  • Prototype

    java
    void setMode(Mode mode);
  • Required permissions

    Selected kiosk (Before 129 version), Settings

  • Support from

    0.10.77

getMode()

Use this method to get the current system mode of temi.

  • Return

    TypeDescription
    ModeCurrent system mode of temi
  • Prototype

    java
    Mode getMode();
  • Required permissions

    None.

  • Support from

    0.10.77


getSupportedLatinKeyboards()

Use this method to get all supported Latin keyboards and their enabled status.

  • Return

    TypeDescription
    Map<String, Boolean>Specific language and corresponding enabled status
  • Prototype

    java
    Map<String, Boolean> getSupportedLatinKeyboards();
  • Required permissions

    None.

  • Support from

    0.10.77


enabledLatinKeyboards()

Use this method to enable the required Latin keyboard.

  • Parameters

    ParameterTypeDescription
    keyboardsList<String>The list of required Latin keyboards and its first element will be the current selected keyboard. Get all supported Latin keyboards by method getSupportedLatinKeyboards().
  • Prototype

    java
    void enabledLatinKeyboards(List<String> keyboards);
  • Required permissions

    Settings

  • Support from

    0.10.77


setGroundDepthCliffDetectionEnabled()

Use this method to enable(disable) the ground depth sensor. You can also set it manually in Settings > Navigation > Sensors Settings.

  • Parameters

    ParameterTypeDescription
    enabledbooleanSet true(false) to enable(disable) ground depth sensor
  • Prototype

    java
    void setGroundDepthCliffDetectionEnabled(boolean enabled);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.78


isGroundDepthCliffDetectionEnabled()

Use this method to check wheather the ground depth sensor is enabled, You can also check it manually in Settings > Navigation > Sensors Settings.

  • Return

    TypeDescription
    booleantrue(false) means ground depth sensor is enabled(disabled)
  • Prototype

    java
    boolean isGroundDepthCliffDetectionEnabled();
  • Required permissions

    None.

  • Support from

    0.10.78


hasCliffSensor()

Use this method to check wheather temi has cliff sensor.

  • Return

    TypeDescription
    booleantrue(false) means temi has(does not have) cliff sensor
  • Prototype

    java
    boolean hasCliffSensor();
  • Required permissions

    None.

  • Support from

    0.10.78


setCliffSensorMode()

Use this method to set the mode of cliff sensor. You can also set it manually in Settings > Navigation > Sensors Settings.

Note, the premise of effectively calling this method is that the machine has a cliff sensor, how to check whether the machine has a cliff sensor.

  • Parameters

    ParameterTypeDescription
    cliffSensorModeCliffSensorModeThe mode of cliff sensor
  • Prototype

    java
    void setCliffSensorMode(CliffSensorMode cliffSensorMode);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.78


getCliffSensorMode()

Use this method to get the mode of cliff sensor. You can also check it manually in Settings > Navigation > Sensors Settings.

Note, the premise of effectively calling this method is that the machine has a cliff sensor, how to check whether the machine has a cliff sensor.

  • Return

    TypeDescription
    CliffSensorModeThe mode of cliff sensor
  • Prototype

    java
    CliffSensorMode getCliffSensorMode();
  • Required permissions

    None.

  • Support from

    0.10.78


setHeadDepthSensitivity()

Use this method to set the sensitivity level of head depth sensor. You can also set it manually in Settings > Navigation > Sensors Settings.

  • Parameters

    ParameterTypeDescription
    sensitivityLevelSensitivityLevelSensitivity level of head depth sensor
  • Prototype

    java
    void setHeadDepthSensitivity(SensitivityLevel sensitivityLevel);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.78


getHeadDepthSensitivity()

Use this method to get the sensitivity level of head depth sensor. You can also check it manually in Settings > Navigation > Sensors Settings.

  • Return

    TypeDescription
    SensitivityLevelSensitivity level of head depth sensor
  • Prototype

    java
    SensitivityLevel getHeadDepthSensitivity();
  • Required permissions

    None.

  • Support from

    0.10.78


setFrontTOFEnabled()

Use this method to enable(disable) the front TOF sensor. You can also set it manually in Settings > Navigation > Sensors Settings.

  • Parameters

    ParameterTypeDescription
    enabledbooleanSet true(false) to enabel(disable) front TOF sensor
  • Prototype

    java
    void setFrontTOFEnabled(boolean enabled);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.78


isFrontTOFEnabled()

Use this method to check wheather the front TOF sensor is enabeld. You can also check it manually in Settings > Navigation > Sensors Settings.

  • Return

    TypeDescription
    booleantrue(false) means enabled(disabled)
  • Prototype

    java
    boolean isFrontTOFEnabled();
  • Required permissions

    None.

  • Support from

    0.10.78


setBackTOFEnabled()

Use this method to enable(disable) the back TOF sensor. You can also set it manually in Settings > Navigation > Sensors Settings.

  • Parameters

    ParameterTypeDescription
    enabledbooleanSet true(false) to enabel(disable) back TOF sensor
  • Prototype

    java
    void setBackTOFEnabled(boolean enabled);
  • Required permissions

    Selected Kiosk (Before 129 version), Settings

  • Support from

    0.10.78


isBackTOFEnabled()

Use this method to check wheather the back TOF sensor is enabeld. You can also check it manually in Settings > Navigation > Sensors Settings.

  • Return

    TypeDescription
    booleantrue(false) means enabled(disabled)
  • Prototype

    java
    boolean isBackTOFEnabled();
  • Required permissions

    None.

  • Support from

    0.10.78


isStandByOn()

Get StandBy status

  • Return

    TypeDescription
    booleantrue if under standBy status, false if not, null if check failed
  • Prototype

    java
    boolean isStandByOn();
  • Required permissions

    None.

  • Support from

    1.129.0


startStandBy()

Start StandBy

  • Return

    TypeDescription
    intCheck result code below
    • -1 for failed to request, maybe robot is not ready
    • 0 for standBy is started
    • 1 for standBy was already running
    • 2 for standby if disabled in settings
    • 3 for robot is busy, e.g. OTA, Greet Mode
    • 403 for SETTINGS permission required
    • 429 for too many requests, should be longer than 5 seconds between 2 calls
  • Prototype

    java
    int startStandBy();
  • Required permissions

    SETTINGS

  • Support from

    1.129.0


stopStandBy()

Stop StandBy with optional password.

  • Parameters

    ParameterTypeDescription
    passwordStringWhen temi requires password to unlock, this method only works when here a valid password is passed.
    Default as empty
  • Return

    TypeDescription
    intCheck result code below
    • -1 for failed to request, maybe robot is not ready
    • 0 for standBy is stopped
    • 1 for standBy was not running
    • 2 for password required
    • 3 for wrong password
    • 403 for SETTINGS permission required
    • 429 for too many requests, should be longer than 5 seconds between 2 calls
  • Prototype

    java
    void stopStandBy(String password);
  • Required permissions

    Settings

  • Support from

    1.129.0


enableStandBy()

Enable or disable StandBy Mode, Disable may need password.

  • Parameters

    ParameterTypeDescription
    enabledBooleantrue or false to turn ON/OFF StandBy Mode
    passwordStringWhen temi requires password to unlock, this method only works when here a valid password is passed.
    Default as empty
  • Return

    TypeDescription
    intCheck result code below
    • -1 for failed to request, maybe robot is not ready
    • 0 for operation failed
    • 1 for operation succeed.
    • 2 for password required
    • 3 for wrong password
    • 403 for SETTINGS permission required
    • 429 for too many requests, should be longer than 5 seconds between 2 calls
  • Prototype

    java
    int enableStandBy(Boolean enabled, String password);
  • Required permissions

    Settings

  • Support from

    1.131.0


getHomeScreenMode()

Get current home screen mode,

  • Return

    TypeDescription
    HomeScreenModeCurrent home screen mode
  • Prototype

    java
    HomeScreenMode getHomeScreenMode();
  • Required permissions

    None

  • Support from

    1.135.1


Interfaces

Below are details regarding utils listeners.

OnBatteryStatusChangedListener

This listener will listen to the status of battery data changed. Set your context to implement this listener and add the override method to get the battery status changes.

Prototype

java
package com.robotemi.sdk.listener;

interface OnBatteryStatusChangedListener {}

Abstract methods

  • Parameters

    ParametersTypeDescription
    batteryDataBatteryDataBatteryData object containing temi's battery status information
  • Prototype

    java
    void onBatteryStatusChanged(BatteryData batteryData);

Method for adding listener

  • Parameters

    ParameterTypeDescription
    listenerOnBatteryStatusChangedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void addOnBatteryStatusChangedListener(OnBatteryStatusChangedListener listener);

Method for removing listener

  • Parameters

    ParameterTypeDescription
    listenerOnBatteryStatusChangedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void removeOnBatteryStatusChangedListener(OnBatteryStatusChangedListener listener);

Support from

0.10.53


OnPrivacyModeChangedListener

This listener will listen to the status of privacy mode changed. Set your context to implement this listener and add the override method to get the privacy mode state changes.

Prototype

java
package com.robotemi.sdk.listener;

interface OnPrivacyModeChangedListener {}

Abstract methods

  • Parameters

    ParameterTypeDescription
    statebooleanstate will be true if privacy mode is on else flase
  • Prototype

    java
    void onPrivacyModeChanged(boolean state);

Method for adding listener

  • Parameters

    ParameterTypeDescription
    listenerOnPrivacyModeChangedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void addOnPrivacyModeStateChangedListener(OnPrivacyModeChangedListener listener);

Method for removing listener

  • Parameters

    ParameterTypeDescription
    listenerOnPrivacyModeChangedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void removeOnPrivacyModeStateChangedListener(OnPrivacyModeChangedListener listener);

Support from

0.10.53


OnSdkExceptionListener

Set your context to implement this listener and add the override method to get the exception message in using temi SDK API(Such as permission denied, invoke too frequently), so that developers can quickly locate the problem to improve development efficiency.

Prototype

java
package com.robotemi.sdk.exception;

interface OnSdkExceptionListener {}

Abstract methods

  • Parameters

    ParameterTypeDescription
    sdkExceptionSdkExceptiontemi SDK exception information
  • Prototype

    java
    void onSdkError(SdkException sdkException);

Method for adding listener

  • Parameters

    ParameterTypeDescription
    listenerOnSdkExceptionListenerThe object of the class implements this listener interface
  • Prototype

    java
    void addOnSdkExceptionListener(OnSdkExceptionListener listener);

Method for removing listener

  • Parameters

    ParameterTypeDescription
    listenerOnSdkExceptionListenerThe object of the class implements this listener interface
  • Prototype

    java
    void removeOnSdkExceptionListener(OnSdkExceptionListener listener);

Support from

0.10.70


OnButtonStatusChangedListener

Set your context to implement this listener and add the override method to get the updates of hard button status.

Prototype

java
package com.robotemi.sdk.listeners;

interface OnButtonStatusChangedListener {}

Abstract methods

  • Parameters

    ParameterTypeDescription
    hardButtonHardButtonButton type, only support Emergency Stop button.
    statusHardButton.StatusButton status
  • Prototype

    java
    void onButtonStatusChanged(HardButton hardButton, HardButton.Status status);

Method for adding listener

  • Parameters

    ParameterTypeDescription
    listenerOnButtonStatusChangedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void addOnButtonStatusChangedListener(OnButtonStatusChangedListener listener);

Method for removing listener

  • Parameters

    ParameterTypeDescription
    listenerOnButtonStatusChangedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void removeOnButtonStatusChangedListener(OnButtonStatusChangedListener listener);

Support from

1.134.0

OnDisabledFeatureListUpdatedListener

Set your context to implement this listener and add the override method to get the updates of the list of disabled features(Navigation, follow, video call...)

Prototype

java
package com.robotemi.sdk.listeners;

interface OnDisabledFeatureListUpdatedListener {}

Abstract methods

  • Parameters

    ParameterTypeDescription
    disabledFeatureListList<String>List of disabled features
  • Prototype

    java
    void onDisabledFeatureListUpdated(List<String> disabledFeatureList);

Method for adding listener

  • Parameters

    ParameterTypeDescription
    listenerOnDisabledFeatureListUpdatedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void addOnDisabledFeatureListUpdatedListener(OnDisabledFeatureListUpdatedListener listener);

Method for removing listener

  • Parameters

    ParameterTypeDescription
    listenerOnDisabledFeatureListUpdatedListenerThe object of the class implements this listener interface
  • Prototype

    java
    void removeOnDisabledFeatureListUpdatedListener(OnDisabledFeatureListUpdatedListener listener);

Support from

0.10.74


Models

Below are the list of models used in the utils methods.

BatteryData

Object used to hold information regarding temi's battery.

Prototype

java
package com.robotemi.sdk;

class BatteryData {}

Attributes

AttributeTypeDescription
levelintBattery level in percentage 1-100%
isChargingbooleantrue if temi is charging else false
battery2LevelintThe battery level for the second battery, added in 134 version

SafetyLevel

Sensitivity level of obstacle avoidance during navigation.

Prototype

java
package com.robotemi.sdk.navigation.model;

enum SafetyLevel {
   HIGH,
   MEDIUM;
}

SpeedLevel

Speed level of go to.

Prototype

java
package com.robotemi.sdk.navigation.model;

enum SpeedLevel {
   HIGH,
   MEDIUM,
   SLOW;
}

SdkException

Exception information in using temi SDK, such as permission denied, invoke too frequently.

Prototype

java
package com.robotemi.sdk.exception;

class SdkException {}

Attributes

AttributeTypeDescription
codeintException code
messageStringException message

Static constants

ConstantTypeValueDescription
CODE_ILLEGAL_ARGUMENTint400Illgeal arguments
CODE_PERMISSION_DENIEDint403Permission denied
CODE_OPERATION_CONFLICTint409Operation conflict
CODE_LAUNCHER_ERRORint500Interal error in Launcher

Page

System internal page.

The current system interface that can be started

PageEnum ValueValue
SettingsSETTINGScom.robotemi.page.settings
Map EditorMAP_EDITORcom.robotemi.page.map_editor
ContactsCONTACTScom.robotemi.page.contacts
LocationsLOCATIONScom.robotemi.page.locations
App ListALL_APPScom.robotemi.page.all_apps
Home PageHOMEcom.robotemi.page.home
Tour list (Supported in 132 version)TOURScom.robotemi.page.tours

Prototype

java
package com.robotemi.sdk.constants;

enum Page {
    SETTINGS,
    MAP_EDITOR,
    CONTACTS,
    LOCATIONS,
    ALL_APPS,
    HOME,
    TOURS;
}

HardButton

Hard button.

Subclass

Mode
Prototype
java
enum Mode {
    ENABLED,
    DISABLED,
    MAIN_BLOCK_FOLLOW;  // Blocking follow(Only works for the main button).
}
Status
Prototype
java
enum Status {
    UNKNOWN,
    HOLD,  // emergency button is pressed/hold
    RELEASED;  // emergency button is released.
}

Prototype

java
package com.robotemi.sdk.constants;

enum HardButton {
    MAIN,  // Main button
    POWER,  // Power button
    VOLUME;  // Volumes buttons
}

SoundMode

Sound mode.

Prototype

java
package com.robotemi.sdk.constants;

enum SoundMode {
    NORMAL,  // Default mode(for media playing).
    VIDEO_CALL;  // For video call scenarios.
}

Mode

System mode, including Default, Greet and Privacy mode.

Prototype

java
package com.robotemi.sdk.constants;

enum Mode {
   DEFAULT,
   GREET,
   PRIVACY;
}

CliffSensorMode

The mode of cliff sensor, including Off, low sensitivity and high sensitivity.

Prototype

java
package com.robotemi.sdk.constants;

enum CliffSensorMode {
    OFF,
    LOW_SENSITIVITY,
    HIGH_SENSITIVITY;
}

SensitivityLevel

Sensitivity level, including low sensitivity and high sensitivity.

Prototype

java
package com.robotemi.sdk.constants;

enum SensitivityLevel {
    HIGH,
    LOW;
}

HomeScreenMode

The mode of home screen

Prototype

kotlin

enum class HomeScreenMode {
    DEFAULT,
    CLEAR,
    CUSTOM_SCREEN,
    URL,
    APPLICATION,
}