SDK
SDK Android v3.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

count #

Returns the number of subscribers in the room.


count(callback) #

ArgumentsTypeDescription
callbackfunctionCallback handling the response

Callback Response #

Returns an integer containing the number of users subscribing to this room.

Usage #

room.count(new ResponseListener<Integer>() {
  @Override
  public void onSuccess(Integer result) throws Exception {
    //  ...
  }
  @Override
  public void onError(JSONObject error) throws Exception {
    // Handle error
  }
});

Callback response

1