Skip to main content

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:

  1. Call QueryFriends to obtain friends' Steam OpenID
  2. Call SendMessage, and set:
    • User: friend's OpenID
    • Description: invitation string pchConnectString
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);

Error Code

Error CodesDescription
1031Steam DLL loading failed
1032The game needs to be launched from the Steam platform
1033Steam initialization failed (check the location of steam_appid.txt or whether Steam is running)