createGroup
Creates a new group with the specified name and description.
This method allows you to create a new group by providing a name and an optional description. The new Group is added to the groups property.
If the provided name
or description
exceeds the maximum length constraints (255 characters), or if the name
is null or empty, the creation operation may fail, and the listener's onError
method will be triggered with an appropriate error message.
If the name
and description
are valid and the group is successfully created, the listener's onSuccess
method is called with the newly created Group object.
Parameters
The name of the group to be created. Must be between 0 and 255 characters in length. If null or empty, the operation will fail.
An optional description for the group. Must be between 0 and 255 characters in length. Can be null.
An optional RainbowListener that will be notified with the result of the creation operation. The listener receives a Group object upon success or an error through the onError
method if the creation fails.