Changing the Group Name

A group owner can change the name of their existing group with the changeGroupName method:

Swift 3:

  • do{
      // Change the group name.
      try group.changeNameSynchronous("myNewGroupName")
    } catch let error as NSError {
      // Handle the error.
      return
    }
  • // Change the group name.
    group.changeName("myNewGroupName") { (group : KiiGroup?, error : Error?) -> Void in
      if error != nil {
        // Handle the error.
        return
      }
    }

Objective-C:

  • NSError *error;
    
    // Change the group name.
    [group changeGroupNameSynchronous:@"myNewGroupName" withError:&error];
    if (error != nil) {
      // Handle the error.
      return;
    }
  • // Change the group name.
    [group changeGroupName:@"myNewGroupName" withBlock:^(KiiGroup *group, NSError *error) {
      if (error != nil) {
        // Handle the error.
        return;
      }
    }];

The group name can be up to 190 characters. There is no restriction on the characters you can use. The group name can duplicate with the existing ones.

Changing the group name does not change the ID nor URI of the group.