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)

Steamworks ISteamApps::BGetDLCDataByIndex()

Declaration
Swift
public func getDLCDataByIndex(dlcIndex: Int, nameBufferSize: Int) -> (
    rc: Bool, appID: AppID, available: Bool, name: String
)

func isAppInstalled(id: AppID) -> Bool

Steamworks ISteamApps::BIsAppInstalled()

Declaration
Swift
public func isAppInstalled(id: AppID) -> Bool

func isCybercafe() -> Bool

Steamworks ISteamApps::BIsCybercafe()

Declaration
Swift
public func isCybercafe() -> Bool

func isDlcInstalled(id: AppID) -> Bool

Steamworks ISteamApps::BIsDlcInstalled()

Declaration
Swift
public func isDlcInstalled(id: AppID) -> Bool

func isLowViolence() -> Bool

Steamworks ISteamApps::BIsLowViolence()

Declaration
Swift
public func isLowViolence() -> Bool

func isSubscribed() -> Bool

Steamworks ISteamApps::BIsSubscribed()

Declaration
Swift
public func isSubscribed() -> Bool

func isSubscribedApp(id: AppID) -> Bool

Steamworks ISteamApps::BIsSubscribedApp()

Declaration
Swift
public func isSubscribedApp(id: AppID) -> Bool

func isSubscribedFromFamilySharing() -> Bool

Steamworks ISteamApps::BIsSubscribedFromFamilySharing()

Declaration
Swift
public func isSubscribedFromFamilySharing() -> Bool

func isSubscribedFromFreeWeekend() -> Bool

Steamworks ISteamApps::BIsSubscribedFromFreeWeekend()

Declaration
Swift
public func isSubscribedFromFreeWeekend() -> Bool

func isTimedTrial() -> (rc: Bool, secondsAllowed: Int, secondsPlayed: Int)

Steamworks ISteamApps::BIsTimedTrial()

Declaration
Swift
public func isTimedTrial() -> (
    rc: Bool, secondsAllowed: Int, secondsPlayed: Int
)

func isVACBanned() -> Bool

Steamworks ISteamApps::BIsVACBanned()

Declaration
Swift
public func isVACBanned() -> Bool

func getAppBuildId() -> Int

Steamworks ISteamApps::GetAppBuildId()

Declaration
Swift
public func getAppBuildId() -> Int

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

Steamworks ISteamApps::GetAppOwner()

Declaration
Swift
public func getAppOwner() -> SteamID

func getAvailableGameLanguages() -> String

Steamworks ISteamApps::GetAvailableGameLanguages()

Declaration
Swift
public func getAvailableGameLanguages() -> String

func getCurrentBetaName(nameBufferSize: Int) -> (rc: Bool, name: String)

Steamworks ISteamApps::GetCurrentBetaName()

Declaration
Swift
public func getCurrentBetaName(nameBufferSize: Int) -> (rc: Bool, name: String)

func getCurrentGameLanguage() -> String

Steamworks ISteamApps::GetCurrentGameLanguage()

Declaration
Swift
public func getCurrentGameLanguage() -> String

func getDLCCount() -> Int

Steamworks ISteamApps::GetDLCCount()

Declaration
Swift
public func getDLCCount() -> Int

func getDlcDownloadProgress(appID: AppID) -> (rc: Bool, bytesDownloaded: UInt64, bytesTotal: UInt64)

Steamworks ISteamApps::GetDlcDownloadProgress()

Declaration
Swift
public func getDlcDownloadProgress(appID: AppID) -> (
    rc: Bool, bytesDownloaded: UInt64, bytesTotal: UInt64
)

func getEarliestPurchaseUnixTime(appID: AppID) -> RTime32

Steamworks ISteamApps::GetEarliestPurchaseUnixTime()

Declaration
Swift
public func getEarliestPurchaseUnixTime(appID: AppID) -> RTime32

func getFileDetails(fileName: String, completion: (FileDetailsResult?) -> Void)

Steamworks ISteamApps::GetFileDetails(), callback

Declaration
Swift
public func getFileDetails(
    fileName: String, completion: @escaping (FileDetailsResult?) -> Void)

func getFileDetails(fileName: String) async -> FileDetailsResult?

Steamworks ISteamApps::GetFileDetails(), async

Declaration
Swift
public func getFileDetails(fileName: String) async -> FileDetailsResult?

func getInstalledDepots(id: AppID, maxDepots: Int) -> (rc: Int, depots: [DepotID])

Steamworks ISteamApps::GetInstalledDepots()

Declaration
Swift
public func getInstalledDepots(id: AppID, maxDepots: Int) -> (
    rc: Int, depots: [DepotID]
)

func getLaunchCommandLine(commandLineSize: Int) -> (rc: Int, commandLine: String)

Steamworks ISteamApps::GetLaunchCommandLine()

Declaration
Swift
public func getLaunchCommandLine(commandLineSize: Int = 1024) -> (
    rc: Int, commandLine: String
)

func getLaunchQueryParam(key: String) -> String

Steamworks ISteamApps::GetLaunchQueryParam()

Declaration
Swift
public func getLaunchQueryParam(key: String) -> String

func installDLC(appID: AppID)

Steamworks ISteamApps::InstallDLC()

Declaration
Swift
public func installDLC(appID: AppID)

func markContentCorrupt(missingFilesOnly: Bool) -> Bool

Steamworks ISteamApps::MarkContentCorrupt()

Declaration
Swift
public func markContentCorrupt(missingFilesOnly: Bool) -> Bool

func requestAllProofOfPurchaseKeys()

Steamworks ISteamApps::RequestAllProofOfPurchaseKeys()

Declaration
Swift
public func requestAllProofOfPurchaseKeys()

func requestAppProofOfPurchaseKey(appID: AppID)

Steamworks ISteamApps::RequestAppProofOfPurchaseKey()

Declaration
Swift
public func requestAppProofOfPurchaseKey(appID: AppID)

func setDlcContext(appID: AppID) -> Bool

Steamworks ISteamApps::SetDlcContext()

Declaration
Swift
public func setDlcContext(appID: AppID) -> Bool

func uninstallDLC(appID: AppID)

Steamworks ISteamApps::UninstallDLC()

Declaration
Swift
public func uninstallDLC(appID: AppID)