| Constructor and Description |
|---|
ALMemoryHelper(Session session) |
| Modifier and Type | Method and Description |
|---|---|
AnyObject |
subscriber(java.lang.String eventName)
Get a subscriber object for an event
|
long |
subscribeToEvent(java.lang.String event,
EventCallback callback)
Subscribe to an Event with Event callback helper (Naoqi 1)
|
long |
subscribeToEvent(java.lang.String event,
java.lang.String signature,
java.lang.Object callback)
Subscribe to an Event (Naoqi 1)
|
void |
unsubscribeAllEvents()
Unsubscribe to all events attached to this proxy
|
void |
unsubscribeToEvent(long eventID)
Unsubscribe to an event giving is subscription id
|
call, connect, connect, disconnect, getNaoqiType, getService, isProxyReady, setServicepublic ALMemoryHelper(Session session) throws java.lang.Exception
java.lang.Exceptionpublic AnyObject subscriber(java.lang.String eventName) throws CallError, java.lang.InterruptedException
eventName - name of the eventCallErrorjava.lang.InterruptedExceptionpublic long subscribeToEvent(java.lang.String event,
java.lang.String signature,
java.lang.Object callback)
throws java.lang.Exception
event - name of the event you want to subscribe (you can get those name in the module NAOqi APIs doc)signature - naoqi signature of the eventcallback - object where the callback function is locatedjava.lang.Exceptionpublic long subscribeToEvent(java.lang.String event,
EventCallback callback)
throws java.lang.Exception
event - name of the event you want to subscribe (you can get those name in the module NAOqi APIs doc)callback - object where the callback function is locatedjava.lang.Exceptionpublic void unsubscribeToEvent(long eventID)
throws java.lang.InterruptedException,
CallError
eventID - id of the event subscriptionjava.lang.InterruptedExceptionCallErrorAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.