Windows Share feature
Use the SendMessage method and pass in FriendReqInfo to implement the share feature.For callback information, refer to Unity callback /
Unreal callback.
Steam
Use the invitation string to invite friends to join the game.After a friend accepts the invitation, pchConnectString will be added to the launch command line.
Implementation Steps:
- Call
QueryFriendsto obtain friends' Steam OpenID - Call
SendMessage, and set:User: friend's OpenIDDescription: invitation stringpchConnectString
- Unity
- Unreal Engine
var friendInfo = new INTLFriendReqInfo();
friendInfo.Type = INTLFriendReqType.Friend_REQ_INVITE;
friendInfo.User = "123214"; // friend's OpenID
friendInfo.Description = "abc"; // invitation string
INTLAPI.SendMessage(friendInfo, INTLChannel.Steam);
FINTLFriendReqInfo friendReqInfo;
friendReqInfo.Type = EINTLFriendReqType::kReqInvite;
friendReqInfo.User = "123214"; // friend's OpenID
friendReqInfo.Description = "abc"; // invitation string
UINTLSDKAPI::SendMessage(friendReqInfo, EINTLLoginChannel::kChannelSteam);
Error Code
| Error Codes | Description |
|---|---|
| 1031 | Steam DLL loading failed |
| 1032 | The game needs to be launched from the Steam platform |
| 1033 | Steam initialization failed (check the location of steam_appid.txt or whether Steam is running) |