Browse SDKs · iOS
SDKsiOS

Create an @all message

Create a message that mentions every group member with OpenIM iOS SDK.

Copy
OIMMessageInfo *message =
    [OIMMessageInfo createTextAtAllMessage:@"@all Please review the announcement"
                               displayText:@"@all"
                                   message:nil];

Pass the complete quoted message through message when applicable. This selector only creates the object. Whether the sender may mention everyone is ultimately validated against the current group permissions and OpenIMServer.