SteamUtils
public struct SteamUtils: Sendable
Steamworks ISteamUtils
Access via utils
through a SteamAPI
or SteamGameServerAPI
instance.
Topics
func overlayNeedsPresent() -> Bool
func overlayNeedsPresent() -> Bool
Steamworks ISteamUtils::BOverlayNeedsPresent()
Declaration
public func overlayNeedsPresent() -> Bool
func checkFileSignature(fileName: String, completion: (sending CheckFileSignature?) -> Void)
func checkFileSignature(fileName: String, completion: (sending CheckFileSignature?) -> Void)
Steamworks ISteamUtils::CheckFileSignature()
, callback
Declaration
public func checkFileSignature(
fileName: String,
completion: @Sendable @escaping (sending CheckFileSignature?) -> Void)
func checkFileSignature(isolation: isolated (any Actor)?, fileName: String) async -> CheckFileSignature?
func checkFileSignature(isolation: isolated (any Actor)?, fileName: String) async -> CheckFileSignature?
Steamworks ISteamUtils::CheckFileSignature()
, async
Declaration
public func checkFileSignature(
isolation: isolated (any Actor)? = #isolation, fileName: String
) async -> CheckFileSignature?
func dismissFloatingGamepadTextInput() -> Bool
func dismissFloatingGamepadTextInput() -> Bool
Steamworks ISteamUtils::DismissFloatingGamepadTextInput()
Declaration
public func dismissFloatingGamepadTextInput() -> Bool
func dismissGamepadTextInput() -> Bool
func dismissGamepadTextInput() -> Bool
Steamworks ISteamUtils::DismissGamepadTextInput()
Declaration
public func dismissGamepadTextInput() -> Bool
func filterText(context: TextFilteringContext, steamID: SteamID, inputMessage: String, byteSizeOutFilteredText: Int) -> (rc: Int, filteredText: String)
func filterText(context: TextFilteringContext, steamID: SteamID, inputMessage: String, byteSizeOutFilteredText: Int) -> (rc: Int, filteredText: String)
func getAPICallFailureReason(steamAPICall: SteamAPICall) -> SteamAPICallFailure
func getAPICallFailureReason(steamAPICall: SteamAPICall) -> SteamAPICallFailure
Steamworks ISteamUtils::GetAPICallFailureReason()
Declaration
public func getAPICallFailureReason(steamAPICall: SteamAPICall)
-> SteamAPICallFailure
func getAPICallResult(steamAPICall: SteamAPICall, callback: UnsafeMutableRawPointer, callbackSize: Int, callbackExpectedIndex: Int) -> (rc: Bool, failed: Bool)
func getAPICallResult(steamAPICall: SteamAPICall, callback: UnsafeMutableRawPointer, callbackSize: Int, callbackExpectedIndex: Int) -> (rc: Bool, failed: Bool)
Steamworks ISteamUtils::GetAPICallResult()
Declaration
public func getAPICallResult(
steamAPICall: SteamAPICall, callback: UnsafeMutableRawPointer,
callbackSize: Int, callbackExpectedIndex: Int
) -> (rc: Bool, failed: Bool)
func getAppID() -> AppID
func getAppID() -> AppID
func getConnectedUniverse() -> Universe
func getConnectedUniverse() -> Universe
Steamworks ISteamUtils::GetConnectedUniverse()
Declaration
public func getConnectedUniverse() -> Universe
func getCurrentBatteryPower() -> UInt8
func getCurrentBatteryPower() -> UInt8
Steamworks ISteamUtils::GetCurrentBatteryPower()
Declaration
public func getCurrentBatteryPower() -> UInt8
func getEnteredGamepadTextInput(textSize: Int) -> (rc: Bool, text: String)
func getEnteredGamepadTextInput(textSize: Int) -> (rc: Bool, text: String)
func getEnteredGamepadTextLength() -> Int
func getEnteredGamepadTextLength() -> Int
Steamworks ISteamUtils::GetEnteredGamepadTextLength()
Declaration
public func getEnteredGamepadTextLength() -> Int
func getIPCCallCount() -> Int
func getIPCCallCount() -> Int
func getIPCountry() -> String
func getIPCountry() -> String
func getIPv6ConnectivityState(protocol: SteamIPv6ConnectivityProtocol) -> SteamIPv6ConnectivityState
func getIPv6ConnectivityState(protocol: SteamIPv6ConnectivityProtocol) -> SteamIPv6ConnectivityState
Steamworks ISteamUtils::GetIPv6ConnectivityState()
Declaration
public func getIPv6ConnectivityState(protocol: SteamIPv6ConnectivityProtocol)
-> SteamIPv6ConnectivityState
func getImageRGBA(imageIndex: Int, destBufferSize: Int) -> (rc: Bool, dest: [UInt8])
func getImageRGBA(imageIndex: Int, destBufferSize: Int) -> (rc: Bool, dest: [UInt8])
func getImageSize(imageIndex: Int) -> (rc: Bool, width: Int, height: Int)
func getImageSize(imageIndex: Int) -> (rc: Bool, width: Int, height: Int)
func getSecondsSinceAppActive() -> Int
func getSecondsSinceAppActive() -> Int
Steamworks ISteamUtils::GetSecondsSinceAppActive()
Declaration
public func getSecondsSinceAppActive() -> Int
func getSecondsSinceComputerActive() -> Int
func getSecondsSinceComputerActive() -> Int
Steamworks ISteamUtils::GetSecondsSinceComputerActive()
Declaration
public func getSecondsSinceComputerActive() -> Int
func getServerRealTime() -> RTime32
func getServerRealTime() -> RTime32
Steamworks ISteamUtils::GetServerRealTime()
Declaration
public func getServerRealTime() -> RTime32
func getSteamUILanguage() -> String
func getSteamUILanguage() -> String
Steamworks ISteamUtils::GetSteamUILanguage()
Declaration
public func getSteamUILanguage() -> String
func initFilterText(filterOptions: Int) -> Bool
func initFilterText(filterOptions: Int) -> Bool
func isAPICallCompleted(steamAPICall: SteamAPICall) -> (rc: Bool, failed: Bool)
func isAPICallCompleted(steamAPICall: SteamAPICall) -> (rc: Bool, failed: Bool)
Steamworks ISteamUtils::IsAPICallCompleted()
Declaration
public func isAPICallCompleted(steamAPICall: SteamAPICall) -> (
rc: Bool, failed: Bool
)
func isOverlayEnabled() -> Bool
func isOverlayEnabled() -> Bool
func isSteamChinaLauncher() -> Bool
func isSteamChinaLauncher() -> Bool
Steamworks ISteamUtils::IsSteamChinaLauncher()
Declaration
public func isSteamChinaLauncher() -> Bool
func isSteamInBigPictureMode() -> Bool
func isSteamInBigPictureMode() -> Bool
Steamworks ISteamUtils::IsSteamInBigPictureMode()
Declaration
public func isSteamInBigPictureMode() -> Bool
func isSteamRunningInVR() -> Bool
func isSteamRunningInVR() -> Bool
Steamworks ISteamUtils::IsSteamRunningInVR()
Declaration
public func isSteamRunningInVR() -> Bool
func isSteamRunningOnSteamDeck() -> Bool
func isSteamRunningOnSteamDeck() -> Bool
Steamworks ISteamUtils::IsSteamRunningOnSteamDeck()
Declaration
public func isSteamRunningOnSteamDeck() -> Bool
func isVRHeadsetStreamingEnabled() -> Bool
func isVRHeadsetStreamingEnabled() -> Bool
Steamworks ISteamUtils::IsVRHeadsetStreamingEnabled()
Declaration
public func isVRHeadsetStreamingEnabled() -> Bool
func setGameLauncherMode(launcherMode: Bool)
func setGameLauncherMode(launcherMode: Bool)
Steamworks ISteamUtils::SetGameLauncherMode()
Declaration
public func setGameLauncherMode(launcherMode: Bool)
func setOverlayNotificationInset(horizontalInset: Int, verticalInset: Int)
func setOverlayNotificationInset(horizontalInset: Int, verticalInset: Int)
func setOverlayNotificationPosition(notificationPosition: NotificationPosition)
func setOverlayNotificationPosition(notificationPosition: NotificationPosition)
Steamworks ISteamUtils::SetOverlayNotificationPosition()
Declaration
public func setOverlayNotificationPosition(
notificationPosition: NotificationPosition)
func setVRHeadsetStreamingEnabled(enabled: Bool)
func setVRHeadsetStreamingEnabled(enabled: Bool)
Steamworks ISteamUtils::SetVRHeadsetStreamingEnabled()
Declaration
public func setVRHeadsetStreamingEnabled(enabled: Bool)
func setWarningMessageHook(function: SteamAPIWarningMessageHook)
func setWarningMessageHook(function: SteamAPIWarningMessageHook)
Steamworks ISteamUtils::SetWarningMessageHook()
Declaration
public func setWarningMessageHook(function: SteamAPIWarningMessageHook)
func showFloatingGamepadTextInput(keyboardMode: FloatingGamepadTextInputMode, textFieldXPosition: Int, textFieldYPosition: Int, textFieldWidth: Int, textFieldHeight: Int) -> Bool
func showFloatingGamepadTextInput(keyboardMode: FloatingGamepadTextInputMode, textFieldXPosition: Int, textFieldYPosition: Int, textFieldWidth: Int, textFieldHeight: Int) -> Bool
func showGamepadTextInput(inputMode: GamepadTextInputMode, lineInputMode: GamepadTextInputLineMode, description: String, charMax: Int, existingText: String) -> Bool
func showGamepadTextInput(inputMode: GamepadTextInputMode, lineInputMode: GamepadTextInputLineMode, description: String, charMax: Int, existingText: String) -> Bool
Steamworks ISteamUtils::ShowGamepadTextInput()
Declaration
public func showGamepadTextInput(
inputMode: GamepadTextInputMode, lineInputMode: GamepadTextInputLineMode,
description: String, charMax: Int, existingText: String
) -> Bool
func startVRDashboard()
func startVRDashboard()
Steamworks ISteamUtils::StartVRDashboard()
Declaration
public func startVRDashboard()
func getEnteredGamepadTextInput() -> (rc: Bool, text: String)
func getEnteredGamepadTextInput() -> (rc: Bool, text: String)
func filterText(context: TextFilteringContext, steamID: SteamID, inputMessage: String) -> (rc: Int, filteredText: String)
func filterText(context: TextFilteringContext, steamID: SteamID, inputMessage: String) -> (rc: Int, filteredText: String)
Provided by module SteamworksHelpers
.
Steamworks ISteamUtils::FilterText()
Declaration
public func filterText(
context: TextFilteringContext, steamID: SteamID, inputMessage: String
) -> (rc: Int, filteredText: String)
func getImageRGBA(imageIndex: Int) -> (rc: Bool, width: Int, height: Int, dest: [UInt8])
func getImageRGBA(imageIndex: Int) -> (rc: Bool, width: Int, height: Int, dest: [UInt8])