Struct steamworks::Apps
source · pub struct Apps<Manager> { /* private fields */ }
Expand description
Access to the steam apps interface
Implementations§
source§impl<Manager> Apps<Manager>
impl<Manager> Apps<Manager>
sourcepub fn is_app_installed(&self, app_id: AppId) -> bool
pub fn is_app_installed(&self, app_id: AppId) -> bool
Returns whether the user currently has the app with the given ID currently installed.
This does not mean the user owns the game.
sourcepub fn is_dlc_installed(&self, app_id: AppId) -> bool
pub fn is_dlc_installed(&self, app_id: AppId) -> bool
Returns whether the user owns the specific dlc and has it installed.
sourcepub fn is_subscribed_app(&self, app_id: AppId) -> bool
pub fn is_subscribed_app(&self, app_id: AppId) -> bool
Returns whether the user is subscribed to the app with the given ID.
This should only be used to check ownership of a game related to yours (e.g. demo).
sourcepub fn is_subscribed_from_free_weekend(&self) -> bool
pub fn is_subscribed_from_free_weekend(&self) -> bool
Returns whether the user is subscribed via a free weekend
sourcepub fn is_vac_banned(&self) -> bool
pub fn is_vac_banned(&self) -> bool
Returns whether the user has a VAC ban on their account.
sourcepub fn is_cybercafe(&self) -> bool
pub fn is_cybercafe(&self) -> bool
Returns whether the license for the current app ID is for cyber cafes.
sourcepub fn is_low_violence(&self) -> bool
pub fn is_low_violence(&self) -> bool
Returns whether the license for the current app ID provides low violence depots.
sourcepub fn is_subscribed(&self) -> bool
pub fn is_subscribed(&self) -> bool
Returns whether the user is subscribed to the current app ID
sourcepub fn app_build_id(&self) -> i32
pub fn app_build_id(&self) -> i32
Returns the build id of this app.
sourcepub fn app_install_dir(&self, app_id: AppId) -> String
pub fn app_install_dir(&self, app_id: AppId) -> String
Returns the installation folder of the app with the given ID.
This works even if the app isn’t installed, returning where it would be installed in the default location.
sourcepub fn app_owner(&self) -> SteamId
pub fn app_owner(&self) -> SteamId
Returns the steam id of the original owner of the app.
Differs from the current user if the app is borrowed.
sourcepub fn available_game_languages(&self) -> Vec<String>
pub fn available_game_languages(&self) -> Vec<String>
Returns a list of languages that the current app supports.
sourcepub fn current_game_language(&self) -> String
pub fn current_game_language(&self) -> String
Returns the language the user has set for the current game.
If the language hasn’t been set this returns the language used for the steam UI.
sourcepub fn current_beta_name(&self) -> Option<String>
pub fn current_beta_name(&self) -> Option<String>
Returns the current beta name if any.
If the user isn’t playing on a beta branch then this
returns None
sourcepub fn launch_command_line(&self) -> String
pub fn launch_command_line(&self) -> String
Returns the command line if the game was launched via Steam URL
If the game was not launched through Steam URL, this returns an empty string.
See Steam API