public class Utility
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Utility.BlueLightMode |
static interface |
Utility.CapEventType |
static interface |
Utility.PlayAction |
static interface |
Utility.SensorType |
Modifier and Type | Method and Description |
---|---|
int |
getLastKidnapTime()
Get ths last kidnap time in milliseconds since January 1, 1970 00:00:00.0 UTC.
|
java.lang.String |
getScreenBlueLightFilterMode()
Gets the level of screen blue light filter mode
|
int |
lookAtUser(float doa)
Ask robot to look at user in robot front
|
int |
playAction(int number)
Perform predefined actions by turning neck and wheels.
|
int |
playEmotionalAction(RobotFace face,
int playAction)
Perform robot expression and predefined action.
|
boolean |
setScreenBlueLightFilterMode(java.lang.String mode)
Sets the screen blue light filter mode
|
public int getLastKidnapTime()
Value will return by onResult callback, Bundle result contain key "last_kidnap_time_millis" and type is long.
RobotCallback.onResult(int, int, RobotErrorCode, Bundle)
public java.lang.String getScreenBlueLightFilterMode()
public int lookAtUser(float doa)
doa
- direction of arrivalpublic int playAction(int number)
Utility.PlayAction
to set action number, naming with loop will be incessant replay.
Use RobotAPI.cancelCommandBySerial(int)
,
RobotAPI.cancelCommand(int)
(int)} or
RobotAPI.cancelCommandAll()
(int)} to cancel action.number
- number of predefined actionUtility.PlayAction
public int playEmotionalAction(RobotFace face, int playAction)
Utility.PlayAction
to set action number, naming with loop will be incessant replay.
Use RobotAPI.cancelCommandBySerial(int)
,
RobotAPI.cancelCommand(int)
(int)} or
RobotAPI.cancelCommandAll()
(int)} to cancel action.face
- face expression IDplayAction
- action IDDialogSystem.setExpression(RobotFace)
,
Utility.PlayAction
public boolean setScreenBlueLightFilterMode(java.lang.String mode)
mode
- The level of blue light filter mode. The sequence of levels is
"RdStrong", "Rd03", "Rd02", "Rd01", and "DEF".
The "RdStrong" is highest level, and "DEF" is used to cancel blue
light filter mode.true
if and only if the operation succeeded.Utility.BlueLightMode