New room notification listener?

0 votes
Hi,

 

I want to be able to listen to any new room creations in my game, so users will know that someone is waiting for a partner.

I tried using the NotificationListener and listen to "public void onRoomCreated(RoomData eventObj)" but that didn't trigger when someone creates a room.

Is there a different API I can use?

Thanks,

Noam
asked Apr 12, 2014 in Discuss & suggest API by noambehar1 (37 points)

1 Answer

0 votes
 
Best answer

That is the correct listener "onRoomCreated"

You need to subscribe lobby before you can expect onRoomCreated/Destroyed notifications :-)

answered Apr 13, 2014 by dhruvc (1,099 points)
selected Apr 13, 2014 by noambehar1
Thanks! I'll try that soon.
Is there a documentation for this API somewhere? for example I want to read when onRoomCreated is created.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...