Social API Reference¶
Complete API reference for the Social module.
IVXFriendsManager¶
Friends and social relationships manager.
Properties¶
| Property | Type | Description |
|---|---|---|
Instance | IVXFriendsManager | Singleton instance |
Friends | List<FriendInfo> | Cached friends list |
IsInitialized | bool | Initialization status |
Methods¶
GetFriendsAsync¶
Gets the user's friends list.
SendFriendRequestAsync¶
Sends a friend request.
AcceptFriendRequestAsync¶
Accepts an incoming friend request.
RejectFriendRequestAsync¶
Rejects an incoming friend request.
RemoveFriendAsync¶
Removes a friend.
BlockUserAsync¶
Blocks a user.
UnblockUserAsync¶
Unblocks a user.
GetPendingRequestsAsync¶
Gets incoming friend requests.
SearchUsersAsync¶
Searches for users by username.
Events¶
| Event | Signature | Description |
|---|---|---|
OnFriendAdded | Action<FriendInfo> | Friend added |
OnFriendRemoved | Action<string> | Friend removed |
OnFriendRequestReceived | Action<FriendRequest> | Request received |
OnFriendOnlineStatusChanged | Action<string, bool> | Online status changed |
FriendInfo¶
Friend data class.
| Property | Type | Description |
|---|---|---|
UserId | string | User ID |
DisplayName | string | Display name |
AvatarUrl | string | Avatar URL |
IsOnline | bool | Online status |
State | FriendState | Relationship state |
FriendState Enum¶
IVXShareManager¶
Sharing and referral functionality.
Methods¶
ShareText¶
Opens system share dialog with text.
ShareScreenshot¶
Captures and shares a screenshot.
GenerateReferralCode¶
Generates a referral code for the current user.
ApplyReferralCode¶
Applies a referral code.