SDKsiOS
Create an @all marker
Create an all-members mention marker with OpenIM iOS SDK.
Invoke createAtAllFlag: on OIMMessageInfo to construct an OIMAtInfo model representing all group members when assembling custom @ mention structures:
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
displayText | NSString * | Yes | The 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
- Local memory instantiation: This method builds an in-memory
OIMAtInfoinstance without making network calls. - Usage: Supply this instance in the
atUsersInfoparameter when assembling compound mention messages via Create an @ message.
Was this page helpful?