SteamApps
Swift
public struct SteamApps: Sendable
Steamworks ISteamApps
Access via apps
.
Topics
func getDLCDataByIndex(dlcIndex: Int, nameBufferSize: Int) -> (rc: Bool, appID: AppID, available: Bool, name: String)
func getDLCDataByIndex(dlcIndex: Int, nameBufferSize: Int) -> (rc: Bool, appID: AppID, available: Bool, name: String)
func isAppInstalled(id: AppID) -> Bool
func isAppInstalled(id: AppID) -> Bool
func isCybercafe() -> Bool
func isCybercafe() -> Bool
func isDlcInstalled(id: AppID) -> Bool
func isDlcInstalled(id: AppID) -> Bool
func isLowViolence() -> Bool
func isLowViolence() -> Bool
func isSubscribed() -> Bool
func isSubscribed() -> Bool
func isSubscribedApp(id: AppID) -> Bool
func isSubscribedApp(id: AppID) -> Bool
func isSubscribedFromFamilySharing() -> Bool
func isSubscribedFromFamilySharing() -> Bool
Steamworks ISteamApps::BIsSubscribedFromFamilySharing()
Declaration
Swift
public func isSubscribedFromFamilySharing() -> Bool
func isSubscribedFromFreeWeekend() -> Bool
func isSubscribedFromFreeWeekend() -> Bool
Steamworks ISteamApps::BIsSubscribedFromFreeWeekend()
Declaration
Swift
public func isSubscribedFromFreeWeekend() -> Bool
func isTimedTrial() -> (rc: Bool, secondsAllowed: Int, secondsPlayed: Int)
func isTimedTrial() -> (rc: Bool, secondsAllowed: Int, secondsPlayed: Int)
func isVACBanned() -> Bool
func isVACBanned() -> Bool
func getAppBuildId() -> Int
func getAppBuildId() -> Int
func getAppInstallDir(id: AppID, folderBufferSize: Int) -> (rc: Int, folder: String)
func getAppInstallDir(id: AppID, folderBufferSize: Int) -> (rc: Int, folder: String)
Steamworks ISteamApps::GetAppInstallDir()
Declaration
Swift
public func getAppInstallDir(
id: AppID, folderBufferSize: Int = SteamConstants.filenameMaxSize
) -> (rc: Int, folder: String)
func getAppOwner() -> SteamID
func getAppOwner() -> SteamID
func getAvailableGameLanguages() -> String
func getAvailableGameLanguages() -> String
Steamworks ISteamApps::GetAvailableGameLanguages()
Declaration
Swift
public func getAvailableGameLanguages() -> String
func getBetaInfo(betaIndex: Int, betaNameSize: Int, descriptionSize: Int) -> (rc: Bool, flags: BetaBranchFlags, buildID: Int, betaName: String, description: String)
func getBetaInfo(betaIndex: Int, betaNameSize: Int, descriptionSize: Int) -> (rc: Bool, flags: BetaBranchFlags, buildID: Int, betaName: String, description: String)
func getCurrentBetaName(nameBufferSize: Int) -> (rc: Bool, name: String)
func getCurrentBetaName(nameBufferSize: Int) -> (rc: Bool, name: String)
func getCurrentGameLanguage() -> String
func getCurrentGameLanguage() -> String
Steamworks ISteamApps::GetCurrentGameLanguage()
Declaration
Swift
public func getCurrentGameLanguage() -> String
func getDLCCount() -> Int
func getDLCCount() -> Int
func getDlcDownloadProgress(appID: AppID) -> (rc: Bool, bytesDownloaded: UInt64, bytesTotal: UInt64)
func getDlcDownloadProgress(appID: AppID) -> (rc: Bool, bytesDownloaded: UInt64, bytesTotal: UInt64)
func getEarliestPurchaseUnixTime(appID: AppID) -> RTime32
func getEarliestPurchaseUnixTime(appID: AppID) -> RTime32
func getFileDetails(fileName: String, completion: (sending FileDetailsResult?) -> Void)
func getFileDetails(fileName: String, completion: (sending FileDetailsResult?) -> Void)
Steamworks ISteamApps::GetFileDetails()
, callback
Declaration
Swift
public func getFileDetails(
fileName: String,
completion: @Sendable @escaping (sending FileDetailsResult?) -> Void)
func getFileDetails(isolation: isolated (any Actor)?, fileName: String) async -> FileDetailsResult?
func getFileDetails(isolation: isolated (any Actor)?, fileName: String) async -> FileDetailsResult?
Steamworks ISteamApps::GetFileDetails()
, async
Declaration
Swift
public func getFileDetails(
isolation: isolated (any Actor)? = #isolation, fileName: String
) async -> FileDetailsResult?
func getInstalledDepots(id: AppID, maxDepots: Int) -> (rc: Int, depots: [DepotID])
func getInstalledDepots(id: AppID, maxDepots: Int) -> (rc: Int, depots: [DepotID])
func getLaunchCommandLine(commandLineSize: Int) -> (rc: Int, commandLine: String)
func getLaunchCommandLine(commandLineSize: Int) -> (rc: Int, commandLine: String)
func getLaunchQueryParam(key: String) -> String
func getLaunchQueryParam(key: String) -> String
func getNumBetas() -> (rc: Int, available: Int, private: Int)
func getNumBetas() -> (rc: Int, available: Int, private: Int)
func installDLC(appID: AppID)
func installDLC(appID: AppID)
func markContentCorrupt(missingFilesOnly: Bool) -> Bool
func markContentCorrupt(missingFilesOnly: Bool) -> Bool
func requestAllProofOfPurchaseKeys()
func requestAllProofOfPurchaseKeys()
Steamworks ISteamApps::RequestAllProofOfPurchaseKeys()
Declaration
Swift
public func requestAllProofOfPurchaseKeys()
func requestAppProofOfPurchaseKey(appID: AppID)
func requestAppProofOfPurchaseKey(appID: AppID)
Steamworks ISteamApps::RequestAppProofOfPurchaseKey()
Declaration
Swift
public func requestAppProofOfPurchaseKey(appID: AppID)
func setActiveBeta(betaName: String) -> Bool
func setActiveBeta(betaName: String) -> Bool
func setDlcContext(appID: AppID) -> Bool
func setDlcContext(appID: AppID) -> Bool
func uninstallDLC(appID: AppID)
func uninstallDLC(appID: AppID)