This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

User and Friends

User and Friends manages your user’s unique persona and their relationship with their friends. Find a user’s friends, their status in your app, and the room they're in using Friends.

Use Friends in combination with Rooms to find help your players find their friends in VR, then place them in a Room where they can interact in VR.

Integrating User and Friends

The following SDK methods can be called from your client app.

  • Retrieve information about the current user:

    Native - ovr_User_GetLoggedInUser()

    Unity - Platform.User.GetLoggedInUser()

    Review the ovr_User_GetLoggedInUser page for information about the parameters and return data structure.

  • Retrieve a list of the user’s friends:

    Native - ovr_User_GetLoggedInUserFriends()

    Unity - Platform.User.GetLoggedInUserFriends()

    Review the ovr_User_GetLoggedInUserFriends page for information about the parameters and return data structure. If there are a large number of values being returned, you may need to call ovr_User_GetNextUserArrayPage and paginate the data.

  • Retrieve a list of the user’s friends and the Room they are currently in:

    Native - ovr_User_GetLoggedInUserFriendsAndRooms()

    Unity - Platform.User.GetLoggedInUserFriendsAndRooms()

    Review the ovr_User_GetLoggedInUserFriendsAndRooms page for information about the parameters and return data structure. If there are a large number of values being returned, you may need to call ovr_User_GetNextUserAndRoomArrayPage and paginate the data.

  • Retrieve information about another user:

    Native - ovr_User_Get()

    Unity - Platform.User.Get()

    Review the ovr_User_Get page for information about the parameters and return data structure.

  • Retrieve an Org Scoped ID for the user:

    Native - ovr_User_GetOrgScopedID()

    Unity - Platform.User.GetOrgScopedID()

    This method returns an ID that is consistent for a user across all applications in your organization. You can use this ID to identify users across multiple apps. Please note that the OrgScopedID is not the same as the userID in an app.

    Review the ovr_User_GetOrgScopedID page for information about the parameters and return data structure.