public class RobotCallback
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
RobotCallback.Listen
Callback from dialog system service. 
 | 
| Constructor and Description | 
|---|
RobotCallback()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
initComplete()
Called when robot api initialization complete 
 | 
void | 
onDetectFaceResult(java.util.List resultList)
Called when detect face service sending result 
 | 
void | 
onDetectPersonResult(java.util.List resultList)
Called when detect service sending result 
 | 
void | 
onFaceResult(java.util.List resultList)
Called when detect/recognize face service sending result 
 | 
void | 
onGesturePoint(GesturePointResult result)
Called when a person pointing somewhere by spreading his arm. 
 | 
void | 
onResult(int cmd,
        int serial,
        RobotErrorCode err_code,
        android.os.Bundle result)
Called when a robot command returns. 
 | 
void | 
onStateChange(int cmd,
             int serial,
             RobotErrorCode err_code,
             RobotCmdState state)
Called when command state change in waiting queue. 
 | 
void | 
onTrackingResult(java.util.List resultList)
Called when tracking service sending result 
 | 
public void initComplete()
public void onDetectFaceResult(java.util.List resultList)
resultList - public void onDetectPersonResult(java.util.List resultList)
resultList - public void onFaceResult(java.util.List resultList)
resultList - public void onGesturePoint(GesturePointResult result)
result - public void onResult(int cmd,
                     int serial,
                     RobotErrorCode err_code,
                     android.os.Bundle result)
cmd - command to be executed, as defined in RobotCommandserial - serial number of the commanderr_code - error coderesult - result of command callbackRobotCommandpublic void onStateChange(int cmd,
                          int serial,
                          RobotErrorCode err_code,
                          RobotCmdState state)
cmd - command to be executed, as defined in RobotCommandserial - serial number of the commanderr_code - error codestate - current command state
                 INITIAL/PENDING/REJECTED/ACTIVE/ABORTED/SUCCEED,
                 as defined in RobotCmdState.javaRobotCommandpublic void onTrackingResult(java.util.List resultList)
resultList -