Re: Comment on BasicExample in emite

2 views
Skip to first unread message

em...@googlecode.com

unread,
Aug 11, 2010, 2:23:39 PM8/11/10
to em...@googlegroups.com
Comment by vdwanderley:


session.onStateChanged(new Listener<Session.State>() {
public void onEvent(final Session.State state) {
print("Session state: " + state);
}
});

I always get this error in the code above, it doesn´t accept the new
Listener<Session.State> argument. I´m using emite´s latest version...


For more information:
http://code.google.com/p/emite/wiki/BasicExample

em...@googlecode.com

unread,
Aug 11, 2010, 2:31:26 PM8/11/10
to em...@googlegroups.com
Comment by danigb:

True... in the current version, the Listener doesn't accept any object, so
instead you should write:

session.onStateChanged(new Listener0() {
public void onEvent() {
print("Session state: " + session.getState());
}
});

I will update this document soon.

Reply all
Reply to author
Forward
0 new messages