SteamFriends
public struct SteamFriends: Sendable
Steamworks ISteamFriends
Access via friends
.
Topics
func activateGameOverlay(dialog: String)
func activateGameOverlay(dialog: String)
Steamworks ISteamFriends::ActivateGameOverlay()
Declaration
public func activateGameOverlay(dialog: String)
func activateGameOverlayInviteDialog(lobby: SteamID)
func activateGameOverlayInviteDialog(lobby: SteamID)
Steamworks ISteamFriends::ActivateGameOverlayInviteDialog()
Declaration
public func activateGameOverlayInviteDialog(lobby: SteamID)
func activateGameOverlayInviteDialogConnectString(connectString: String)
func activateGameOverlayInviteDialogConnectString(connectString: String)
Steamworks ISteamFriends::ActivateGameOverlayInviteDialogConnectString()
Declaration
public func activateGameOverlayInviteDialogConnectString(connectString: String)
func activateGameOverlayRemotePlayTogetherInviteDialog(lobby: SteamID)
func activateGameOverlayRemotePlayTogetherInviteDialog(lobby: SteamID)
Steamworks ISteamFriends::ActivateGameOverlayRemotePlayTogetherInviteDialog()
Declaration
public func activateGameOverlayRemotePlayTogetherInviteDialog(lobby: SteamID)
func activateGameOverlayToStore(appID: AppID, flag: OverlayToStoreFlag)
func activateGameOverlayToStore(appID: AppID, flag: OverlayToStoreFlag)
Steamworks ISteamFriends::ActivateGameOverlayToStore()
Declaration
public func activateGameOverlayToStore(appID: AppID, flag: OverlayToStoreFlag)
func activateGameOverlayToUser(dialog: String, steamID: SteamID)
func activateGameOverlayToUser(dialog: String, steamID: SteamID)
func activateGameOverlayToWebPage(url: String, mode: ActivateGameOverlayToWebPageMode)
func activateGameOverlayToWebPage(url: String, mode: ActivateGameOverlayToWebPageMode)
Steamworks ISteamFriends::ActivateGameOverlayToWebPage()
Declaration
public func activateGameOverlayToWebPage(
url: String, mode: ActivateGameOverlayToWebPageMode)
func hasEquippedProfileItem(steamID: SteamID, type: CommunityProfileItemType) -> Bool
func hasEquippedProfileItem(steamID: SteamID, type: CommunityProfileItemType) -> Bool
Steamworks ISteamFriends::BHasEquippedProfileItem()
Declaration
public func hasEquippedProfileItem(
steamID: SteamID, type: CommunityProfileItemType
) -> Bool
func clearRichPresence()
func clearRichPresence()
Steamworks ISteamFriends::ClearRichPresence()
Declaration
public func clearRichPresence()
func closeClanChatWindowInSteam(clanChat: SteamID) -> Bool
func closeClanChatWindowInSteam(clanChat: SteamID) -> Bool
func downloadClanActivityCounts(clans: [SteamID], completion: (sending DownloadClanActivityCountsResult?) -> Void)
func downloadClanActivityCounts(clans: [SteamID], completion: (sending DownloadClanActivityCountsResult?) -> Void)
Steamworks ISteamFriends::DownloadClanActivityCounts()
, callback
Declaration
public func downloadClanActivityCounts(
clans: [SteamID],
completion: @Sendable @escaping (sending DownloadClanActivityCountsResult?)
-> Void)
func downloadClanActivityCounts(isolation: isolated (any Actor)?, clans: [SteamID]) async -> DownloadClanActivityCountsResult?
func downloadClanActivityCounts(isolation: isolated (any Actor)?, clans: [SteamID]) async -> DownloadClanActivityCountsResult?
Steamworks ISteamFriends::DownloadClanActivityCounts()
, async
Declaration
public func downloadClanActivityCounts(
isolation: isolated (any Actor)? = #isolation, clans: [SteamID]
) async -> DownloadClanActivityCountsResult?
func enumerateFollowingList(startIndex: Int, completion: (sending FriendsEnumerateFollowingList?) -> Void)
func enumerateFollowingList(startIndex: Int, completion: (sending FriendsEnumerateFollowingList?) -> Void)
Steamworks ISteamFriends::EnumerateFollowingList()
, callback
Declaration
public func enumerateFollowingList(
startIndex: Int,
completion: @Sendable @escaping (sending FriendsEnumerateFollowingList?) ->
Void)
func enumerateFollowingList(isolation: isolated (any Actor)?, startIndex: Int) async -> FriendsEnumerateFollowingList?
func enumerateFollowingList(isolation: isolated (any Actor)?, startIndex: Int) async -> FriendsEnumerateFollowingList?
Steamworks ISteamFriends::EnumerateFollowingList()
, async
Declaration
public func enumerateFollowingList(
isolation: isolated (any Actor)? = #isolation, startIndex: Int
) async -> FriendsEnumerateFollowingList?
func getChatMemberByIndex(clan: SteamID, userIndex: Int) -> SteamID
func getChatMemberByIndex(clan: SteamID, userIndex: Int) -> SteamID
func getClanActivityCounts(clan: SteamID) -> (rc: Bool, online: Int, inGame: Int, chatting: Int)
func getClanActivityCounts(clan: SteamID) -> (rc: Bool, online: Int, inGame: Int, chatting: Int)
func getClanByIndex(clanIndex: Int) -> SteamID
func getClanByIndex(clanIndex: Int) -> SteamID
func getClanChatMemberCount(clan: SteamID) -> Int
func getClanChatMemberCount(clan: SteamID) -> Int
func getClanChatMessage(clanChat: SteamID, messageIndex: Int, textMaxSize: Int) -> (rc: Int, text: String, chatEntryType: ChatEntryType, chatter: SteamID)
func getClanChatMessage(clanChat: SteamID, messageIndex: Int, textMaxSize: Int) -> (rc: Int, text: String, chatEntryType: ChatEntryType, chatter: SteamID)
Steamworks ISteamFriends::GetClanChatMessage()
Declaration
public func getClanChatMessage(
clanChat: SteamID, messageIndex: Int,
textMaxSize: Int = SteamConstants.chatMetadataMaxSize + 1
) -> (rc: Int, text: String, chatEntryType: ChatEntryType, chatter: SteamID)
func getClanCount() -> Int
func getClanCount() -> Int
func getClanName(clan: SteamID) -> String
func getClanName(clan: SteamID) -> String
func getClanOfficerByIndex(clan: SteamID, officerIndex: Int) -> SteamID
func getClanOfficerByIndex(clan: SteamID, officerIndex: Int) -> SteamID
func getClanOfficerCount(clan: SteamID) -> Int
func getClanOfficerCount(clan: SteamID) -> Int
func getClanOwner(clan: SteamID) -> SteamID
func getClanOwner(clan: SteamID) -> SteamID
func getClanTag(clan: SteamID) -> String
func getClanTag(clan: SteamID) -> String
func getCoplayFriend(coplayFriendIndex: Int) -> SteamID
func getCoplayFriend(coplayFriendIndex: Int) -> SteamID
func getCoplayFriendCount() -> Int
func getCoplayFriendCount() -> Int
Steamworks ISteamFriends::GetCoplayFriendCount()
Declaration
public func getCoplayFriendCount() -> Int
func getFollowerCount(steamID: SteamID, completion: (sending FriendsGetFollowerCount?) -> Void)
func getFollowerCount(steamID: SteamID, completion: (sending FriendsGetFollowerCount?) -> Void)
Steamworks ISteamFriends::GetFollowerCount()
, callback
Declaration
public func getFollowerCount(
steamID: SteamID,
completion: @Sendable @escaping (sending FriendsGetFollowerCount?) -> Void)
func getFollowerCount(isolation: isolated (any Actor)?, steamID: SteamID) async -> FriendsGetFollowerCount?
func getFollowerCount(isolation: isolated (any Actor)?, steamID: SteamID) async -> FriendsGetFollowerCount?
Steamworks ISteamFriends::GetFollowerCount()
, async
Declaration
public func getFollowerCount(
isolation: isolated (any Actor)? = #isolation, steamID: SteamID
) async -> FriendsGetFollowerCount?
func getFriendByIndex(friendIndex: Int, friendFlags: FriendFlags) -> SteamID
func getFriendByIndex(friendIndex: Int, friendFlags: FriendFlags) -> SteamID
Steamworks ISteamFriends::GetFriendByIndex()
Declaration
public func getFriendByIndex(friendIndex: Int, friendFlags: FriendFlags)
-> SteamID
func getFriendCoplayGame(friend: SteamID) -> AppID
func getFriendCoplayGame(friend: SteamID) -> AppID
func getFriendCoplayTime(friend: SteamID) -> Int
func getFriendCoplayTime(friend: SteamID) -> Int
func getFriendCount(friendFlags: FriendFlags) -> Int
func getFriendCount(friendFlags: FriendFlags) -> Int
Steamworks ISteamFriends::GetFriendCount()
Declaration
public func getFriendCount(friendFlags: FriendFlags) -> Int
func getFriendCountFromSource(source: SteamID) -> Int
func getFriendCountFromSource(source: SteamID) -> Int
func getFriendFromSourceByIndex(source: SteamID, friendIndex: Int) -> SteamID
func getFriendFromSourceByIndex(source: SteamID, friendIndex: Int) -> SteamID
func getFriendGamePlayed(friend: SteamID) -> (rc: Bool, friendGameInfo: FriendGameInfo)
func getFriendGamePlayed(friend: SteamID) -> (rc: Bool, friendGameInfo: FriendGameInfo)
Steamworks ISteamFriends::GetFriendGamePlayed()
Declaration
public func getFriendGamePlayed(friend: SteamID) -> (
rc: Bool, friendGameInfo: FriendGameInfo
)
func getFriendMessage(friend: SteamID, messageIDIndex: Int, dataSize: Int) -> (rc: Int, data: String, chatEntryType: ChatEntryType)
func getFriendMessage(friend: SteamID, messageIDIndex: Int, dataSize: Int) -> (rc: Int, data: String, chatEntryType: ChatEntryType)
Steamworks ISteamFriends::GetFriendMessage()
Declaration
public func getFriendMessage(
friend: SteamID, messageIDIndex: Int,
dataSize: Int = SteamConstants.chatMetadataMaxSize + 1
) -> (rc: Int, data: String, chatEntryType: ChatEntryType)
func getFriendPersonaName(friend: SteamID) -> String
func getFriendPersonaName(friend: SteamID) -> String
func getFriendPersonaNameHistory(friend: SteamID, personaNameIndex: Int) -> String
func getFriendPersonaNameHistory(friend: SteamID, personaNameIndex: Int) -> String
func getFriendPersonaState(friend: SteamID) -> PersonaState
func getFriendPersonaState(friend: SteamID) -> PersonaState
Steamworks ISteamFriends::GetFriendPersonaState()
Declaration
public func getFriendPersonaState(friend: SteamID) -> PersonaState
func getFriendRelationship(friend: SteamID) -> FriendRelationship
func getFriendRelationship(friend: SteamID) -> FriendRelationship
Steamworks ISteamFriends::GetFriendRelationship()
Declaration
public func getFriendRelationship(friend: SteamID) -> FriendRelationship
func getFriendRichPresence(friend: SteamID, key: String) -> String
func getFriendRichPresence(friend: SteamID, key: String) -> String
func getFriendRichPresenceKeyByIndex(friend: SteamID, keyIndex: Int) -> String
func getFriendRichPresenceKeyByIndex(friend: SteamID, keyIndex: Int) -> String
func getFriendRichPresenceKeyCount(friend: SteamID) -> Int
func getFriendRichPresenceKeyCount(friend: SteamID) -> Int
func getFriendSteamLevel(friend: SteamID) -> Int
func getFriendSteamLevel(friend: SteamID) -> Int
func getFriendsGroupCount() -> Int
func getFriendsGroupCount() -> Int
Steamworks ISteamFriends::GetFriendsGroupCount()
Declaration
public func getFriendsGroupCount() -> Int
func getFriendsGroupIDByIndex(fgIndex: Int) -> FriendsGroupID
func getFriendsGroupIDByIndex(fgIndex: Int) -> FriendsGroupID
Steamworks ISteamFriends::GetFriendsGroupIDByIndex()
Declaration
public func getFriendsGroupIDByIndex(fgIndex: Int) -> FriendsGroupID
func getFriendsGroupMembersCount(friendsGroupID: FriendsGroupID) -> Int
func getFriendsGroupMembersCount(friendsGroupID: FriendsGroupID) -> Int
Steamworks ISteamFriends::GetFriendsGroupMembersCount()
Declaration
public func getFriendsGroupMembersCount(friendsGroupID: FriendsGroupID) -> Int
func getFriendsGroupMembersList(friendsGroupID: FriendsGroupID, membersCount: Int) -> [SteamID]
func getFriendsGroupMembersList(friendsGroupID: FriendsGroupID, membersCount: Int) -> [SteamID]
Steamworks ISteamFriends::GetFriendsGroupMembersList()
Declaration
public func getFriendsGroupMembersList(
friendsGroupID: FriendsGroupID, membersCount: Int
) -> [SteamID]
func getFriendsGroupName(friendsGroupID: FriendsGroupID) -> String?
func getFriendsGroupName(friendsGroupID: FriendsGroupID) -> String?
Steamworks ISteamFriends::GetFriendsGroupName()
Declaration
public func getFriendsGroupName(friendsGroupID: FriendsGroupID) -> String?
func getLargeFriendAvatar(friend: SteamID) -> Int
func getLargeFriendAvatar(friend: SteamID) -> Int
func getMediumFriendAvatar(friend: SteamID) -> Int
func getMediumFriendAvatar(friend: SteamID) -> Int
func getNumChatsWithUnreadPriorityMessages() -> Int
func getNumChatsWithUnreadPriorityMessages() -> Int
Steamworks ISteamFriends::GetNumChatsWithUnreadPriorityMessages()
Declaration
public func getNumChatsWithUnreadPriorityMessages() -> Int
func getPersonaName() -> String
func getPersonaName() -> String
func getPersonaState() -> PersonaState
func getPersonaState() -> PersonaState
Steamworks ISteamFriends::GetPersonaState()
Declaration
public func getPersonaState() -> PersonaState
func getPlayerNickname(player: SteamID) -> String?
func getPlayerNickname(player: SteamID) -> String?
func getProfileItemPropertyString(steamID: SteamID, type: CommunityProfileItemType, prop: CommunityProfileItemProperty) -> String
func getProfileItemPropertyString(steamID: SteamID, type: CommunityProfileItemType, prop: CommunityProfileItemProperty) -> String
Steamworks ISteamFriends::GetProfileItemPropertyString()
Declaration
public func getProfileItemPropertyString(
steamID: SteamID, type: CommunityProfileItemType,
prop: CommunityProfileItemProperty
) -> String
func getProfileItemPropertyUint(steamID: SteamID, type: CommunityProfileItemType, prop: CommunityProfileItemProperty) -> Int
func getProfileItemPropertyUint(steamID: SteamID, type: CommunityProfileItemType, prop: CommunityProfileItemProperty) -> Int
Steamworks ISteamFriends::GetProfileItemPropertyUint()
Declaration
public func getProfileItemPropertyUint(
steamID: SteamID, type: CommunityProfileItemType,
prop: CommunityProfileItemProperty
) -> Int
func getSmallFriendAvatar(friend: SteamID) -> Int
func getSmallFriendAvatar(friend: SteamID) -> Int
func getUserRestrictions() -> UserRestriction
func getUserRestrictions() -> UserRestriction
Steamworks ISteamFriends::GetUserRestrictions()
Declaration
public func getUserRestrictions() -> UserRestriction
func hasFriend(friend: SteamID, friendFlags: FriendFlags) -> Bool
func hasFriend(friend: SteamID, friendFlags: FriendFlags) -> Bool
Steamworks ISteamFriends::HasFriend()
Declaration
public func hasFriend(friend: SteamID, friendFlags: FriendFlags) -> Bool
func inviteUserToGame(friend: SteamID, connectString: String) -> Bool
func inviteUserToGame(friend: SteamID, connectString: String) -> Bool
func isClanChatAdmin(clanChat: SteamID, user: SteamID) -> Bool
func isClanChatAdmin(clanChat: SteamID, user: SteamID) -> Bool
func isClanChatWindowOpenInSteam(clanChat: SteamID) -> Bool
func isClanChatWindowOpenInSteam(clanChat: SteamID) -> Bool
func isClanOfficialGameGroup(clan: SteamID) -> Bool
func isClanOfficialGameGroup(clan: SteamID) -> Bool
func isClanPublic(clan: SteamID) -> Bool
func isClanPublic(clan: SteamID) -> Bool
func isFollowing(steamID: SteamID, completion: (sending FriendsIsFollowing?) -> Void)
func isFollowing(steamID: SteamID, completion: (sending FriendsIsFollowing?) -> Void)
Steamworks ISteamFriends::IsFollowing()
, callback
Declaration
public func isFollowing(
steamID: SteamID,
completion: @Sendable @escaping (sending FriendsIsFollowing?) -> Void)
func isFollowing(isolation: isolated (any Actor)?, steamID: SteamID) async -> FriendsIsFollowing?
func isFollowing(isolation: isolated (any Actor)?, steamID: SteamID) async -> FriendsIsFollowing?
Steamworks ISteamFriends::IsFollowing()
, async
Declaration
public func isFollowing(
isolation: isolated (any Actor)? = #isolation, steamID: SteamID
) async -> FriendsIsFollowing?
func isUserInSource(user: SteamID, source: SteamID) -> Bool
func isUserInSource(user: SteamID, source: SteamID) -> Bool
func joinClanChatRoom(clan: SteamID, completion: (sending JoinClanChatRoomCompletionResult?) -> Void)
func joinClanChatRoom(clan: SteamID, completion: (sending JoinClanChatRoomCompletionResult?) -> Void)
Steamworks ISteamFriends::JoinClanChatRoom()
, callback
Declaration
public func joinClanChatRoom(
clan: SteamID,
completion: @Sendable @escaping (sending JoinClanChatRoomCompletionResult?)
-> Void)
func joinClanChatRoom(isolation: isolated (any Actor)?, clan: SteamID) async -> JoinClanChatRoomCompletionResult?
func joinClanChatRoom(isolation: isolated (any Actor)?, clan: SteamID) async -> JoinClanChatRoomCompletionResult?
Steamworks ISteamFriends::JoinClanChatRoom()
, async
Declaration
public func joinClanChatRoom(
isolation: isolated (any Actor)? = #isolation, clan: SteamID
) async -> JoinClanChatRoomCompletionResult?
func leaveClanChatRoom(clan: SteamID) -> Bool
func leaveClanChatRoom(clan: SteamID) -> Bool
func openClanChatWindowInSteam(clanChat: SteamID) -> Bool
func openClanChatWindowInSteam(clanChat: SteamID) -> Bool
func registerProtocolInOverlayBrowser(protocol: String) -> Bool
func registerProtocolInOverlayBrowser(protocol: String) -> Bool
func replyToFriendMessage(friend: SteamID, msgToSend: String) -> Bool
func replyToFriendMessage(friend: SteamID, msgToSend: String) -> Bool
func requestClanOfficerList(clan: SteamID, completion: (sending ClanOfficerListResponse?) -> Void)
func requestClanOfficerList(clan: SteamID, completion: (sending ClanOfficerListResponse?) -> Void)
Steamworks ISteamFriends::RequestClanOfficerList()
, callback
Declaration
public func requestClanOfficerList(
clan: SteamID,
completion: @Sendable @escaping (sending ClanOfficerListResponse?) -> Void)
func requestClanOfficerList(isolation: isolated (any Actor)?, clan: SteamID) async -> ClanOfficerListResponse?
func requestClanOfficerList(isolation: isolated (any Actor)?, clan: SteamID) async -> ClanOfficerListResponse?
Steamworks ISteamFriends::RequestClanOfficerList()
, async
Declaration
public func requestClanOfficerList(
isolation: isolated (any Actor)? = #isolation, clan: SteamID
) async -> ClanOfficerListResponse?
func requestEquippedProfileItems(steamID: SteamID, completion: (sending EquippedProfileItems?) -> Void)
func requestEquippedProfileItems(steamID: SteamID, completion: (sending EquippedProfileItems?) -> Void)
Steamworks ISteamFriends::RequestEquippedProfileItems()
, callback
Declaration
public func requestEquippedProfileItems(
steamID: SteamID,
completion: @Sendable @escaping (sending EquippedProfileItems?) -> Void)
func requestEquippedProfileItems(isolation: isolated (any Actor)?, steamID: SteamID) async -> EquippedProfileItems?
func requestEquippedProfileItems(isolation: isolated (any Actor)?, steamID: SteamID) async -> EquippedProfileItems?
Steamworks ISteamFriends::RequestEquippedProfileItems()
, async
Declaration
public func requestEquippedProfileItems(
isolation: isolated (any Actor)? = #isolation, steamID: SteamID
) async -> EquippedProfileItems?
func requestFriendRichPresence(friend: SteamID)
func requestFriendRichPresence(friend: SteamID)
Steamworks ISteamFriends::RequestFriendRichPresence()
Declaration
public func requestFriendRichPresence(friend: SteamID)
func requestUserInformation(user: SteamID, requireNameOnly: Bool) -> Bool
func requestUserInformation(user: SteamID, requireNameOnly: Bool) -> Bool
func sendClanChatMessage(clanChat: SteamID, text: String) -> Bool
func sendClanChatMessage(clanChat: SteamID, text: String) -> Bool
func setInGameVoiceSpeaking(user: SteamID, speaking: Bool)
func setInGameVoiceSpeaking(user: SteamID, speaking: Bool)
func setListenForFriendsMessages(interceptEnabled: Bool) -> Bool
func setListenForFriendsMessages(interceptEnabled: Bool) -> Bool
func setPersonaName(personaName: String, completion: (sending SetPersonaNameResponse?) -> Void)
func setPersonaName(personaName: String, completion: (sending SetPersonaNameResponse?) -> Void)
Steamworks ISteamFriends::SetPersonaName()
, callback
Declaration
public func setPersonaName(
personaName: String,
completion: @Sendable @escaping (sending SetPersonaNameResponse?) -> Void)
func setPersonaName(isolation: isolated (any Actor)?, personaName: String) async -> SetPersonaNameResponse?
func setPersonaName(isolation: isolated (any Actor)?, personaName: String) async -> SetPersonaNameResponse?
Steamworks ISteamFriends::SetPersonaName()
, async
Declaration
public func setPersonaName(
isolation: isolated (any Actor)? = #isolation, personaName: String
) async -> SetPersonaNameResponse?
func setPlayedWith(userPlayedWith: SteamID)
func setPlayedWith(userPlayedWith: SteamID)
Steamworks ISteamFriends::SetPlayedWith()
Declaration
public func setPlayedWith(userPlayedWith: SteamID)
func setRichPresence(key: String, value: String?) -> Bool
func setRichPresence(key: String, value: String?) -> Bool
func getFriendsGroupMembersList(friendsGroupID: FriendsGroupID) -> [SteamID]
func getFriendsGroupMembersList(friendsGroupID: FriendsGroupID) -> [SteamID]
Provided by module SteamworksHelpers
.
Steamworks ISteamFriends::GetFriendsGroupMembersList()
Declaration
public func getFriendsGroupMembersList(friendsGroupID: FriendsGroupID)
-> [SteamID]