Struct steamworks::Friends
source · pub struct Friends<Manager> { /* private fields */ }
Expand description
Access to the steam friends interface
Implementations§
source§impl<Manager> Friends<Manager>
impl<Manager> Friends<Manager>
pub fn get_friends(&self, flags: FriendFlags) -> Vec<Friend<Manager>>
sourcepub fn get_coplay_friends(&self) -> Vec<Friend<Manager>>
pub fn get_coplay_friends(&self) -> Vec<Friend<Manager>>
Returns recently played with players list
pub fn get_friend(&self, friend: SteamId) -> Friend<Manager>
pub fn request_user_information(&self, user: SteamId, name_only: bool) -> bool
pub fn activate_game_overlay(&self, dialog: &str)
pub fn activate_game_overlay_to_web_page(&self, url: &str)
pub fn activate_game_overlay_to_store( &self, app_id: AppId, overlay_to_store_flag: OverlayToStoreFlag )
pub fn activate_game_overlay_to_user(&self, dialog: &str, user: SteamId)
sourcepub fn activate_invite_dialog(&self, lobby: LobbyId)
pub fn activate_invite_dialog(&self, lobby: LobbyId)
Opens up an invite dialog for the given lobby
sourcepub fn set_rich_presence(&self, key: &str, value: Option<&str>) -> bool
pub fn set_rich_presence(&self, key: &str, value: Option<&str>) -> bool
Set rich presence for the user. Unsets the rich presence if value
is None or empty.
See Steam API
sourcepub fn clear_rich_presence(&self)
pub fn clear_rich_presence(&self)
Clears all of the current user’s Rich Presence key/values.
sourcepub fn get_user_restrictions(&self) -> UserRestriction
pub fn get_user_restrictions(&self) -> UserRestriction
Checks if current user is chat restricted.
If they are restricted, then they can’t send or receive any text/voice chat messages, can’t see custom avatars. A chat restricted user can’t add friends or join any groups. Restricted users can still be online and send/receive game invites.
Auto Trait Implementations§
impl<Manager> RefUnwindSafe for Friends<Manager>where
Manager: RefUnwindSafe,
impl<Manager> !Send for Friends<Manager>
impl<Manager> !Sync for Friends<Manager>
impl<Manager> Unpin for Friends<Manager>
impl<Manager> UnwindSafe for Friends<Manager>where
Manager: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more