Skip to main content
Version: 5.9.6

OnMatchMakingRoomInvite

public MatchMakingInviteUserEventHandler OnMatchMakingRoomInvite;

Argument

ValueTypeDescription
argsMatchMakingInteractionEventArgsSuccess/failure status of user invitation

MatchMakingInteractionEventArgs

ValueTypeDescription
ErrInfoErrorCodeError information
ReasonstringError description

Description

This event handler is called when you invite a user.

  • You can check whether the invitation succeeded or failed.
  • You cannot check whether the user you invited accepts/declines the invitation.

In order for an event to be called, the message sending/receiving method must be called.

Example

Backend.Match.OnMatchMakingRoomInvite = (MatchMakingInteractionEventArgs args) => {
// TODO
};

Argument cases

When the user invitation message is sent successfully ErrInfo : ErrorInfo.Success

When you invite a user without creating a waiting room ErrInfo : ErrorInfo.Match_Making_NotJoinedRoom Reason : You are not joined room.

When the user you invited is not connected to the matching server ErrInfo : ErrorInfo.Match_Making_NotFoundGamer Reason : Not found 'nickName' gamer.

When you invite a user who is already in the same room or a different room ErrInfo : Match_Making_AlreadyJoinedRoom Reason : 'nickName' Gamer already joined the another room.