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, setService
public ALMemoryHelper(Session session) throws java.lang.Exception
java.lang.Exception
public AnyObject subscriber(java.lang.String eventName) throws CallError, java.lang.InterruptedException
eventName
- name of the eventCallError
java.lang.InterruptedException
public 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.Exception
public 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.Exception
public void unsubscribeToEvent(long eventID) throws java.lang.InterruptedException, CallError
eventID
- id of the event subscriptionjava.lang.InterruptedException
CallError
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.