getPeerOnlineStatus abstract method

Future<int?> getPeerOnlineStatus(
  1. String peerUid
)

Queries the login status of the specified remote user or local user before sending the message.

Return value:

  • 0: Success.

  • <0: Failure. See ReturnStatus for the reason.

  • Call this API after calling RTCVideo.login to log in.

  • After this API is called, the local user will receive RTCVideoEventHandler.onGetPeerOnlineStatus.

  • Before sending out-of-room messages, users can find out whether the user on the other end is logged in or not through this API, so that they can decide whether to send messages or not. You can also check your own login status through this API.

Implementation

Future<int?> getPeerOnlineStatus(String peerUid);