Browse SDKs · iOS
Platform
SDKsiOS

Create an @all marker

Create an all-members mention marker with OpenIM iOS SDK.

Copy

Invoke createAtAllFlag: on OIMMessageInfo to construct an OIMAtInfo model representing all group members when assembling custom @ mention structures:

Parameters

ParameterTypeRequiredDescription
displayTextNSString *YesThe placeholder text to display in the UI (such as @All).

Code example

OIMAtInfo *atAll = [OIMMessageInfo createAtAllFlag:@"@All"];

Return value

Returns an initialized OIMAtInfo instance configured to designate all group members. This marker does not represent a real user account and serves strictly as an all-member indicator in @ messages.

State changes after the call

  1. Local memory instantiation: This method builds an in-memory OIMAtInfo instance without making network calls.
  2. Usage: Supply this instance in the atUsersInfo parameter when assembling compound mention messages via Create an @ message.