Account and Friends
Important
Before using any platform features, developers have to initialize Platform SDK first. Refer to Platform for more information.
Friends
Users can see friends' information in your application.
The following SDK methods can be called from your client app:
YVR.Platform.Friends.GetFriends
: Retrieves information of all user's friends.YVR.Platform.Friends.GetFriendInformation
: Retrieves information about an appointed friend with account ID.
Note
For more information, please refer to Friends API Documentation.
Account
Once a user opens your application, you can get user's account information from your application.
YVR.Platform.Account.GetLoggedInUser
: Get logged in user's account information.
Note
For more information, please refer to Account API Documentation.
Sample
Important
YVR system version requirement: 1.2.6 and above
Please follow the steps to import Sample Project. Platform Sample is also available at YVR Developer Github.
Import Platform SDK.
Go to Window > Package Manager > Platform > Samples, select Import button to import Platform Samples.
Under Project panel, go to Assets > Samples > YVR Platform > [platform version number]. Select Account/Friends folder to view the sample project.
Note
The platform version number depends on the version you have imported, e.g. 0.5.1.
Build and install on YVR device.