Browse SDKs · Flutter
SDKsFlutter

Retrieve the unhandled friend-application count

Retrieve the number of unhandled friend applications with the OpenIM Flutter SDK.

Copy
final count = await OpenIM.iMManager.friendshipManager
    .getFriendApplicationUnhandledCount(
  GetFriendApplicationUnhandledCountReq(time: lastViewedAt),
);

time is generally the timestamp when the application list was last viewed. A successful Future returns a snapshot of the matching unhandled count. The query itself does not trigger application events.