class Users
Users
()
|
Signature
constructor() Returns Users |
get
(
userId
)
|
Retrieve the user with the given ID. This might fail if the ID is invalid or the user is blocked. NOTE: Users will have a unique ID per application.
Signature
suspend fun get(userId: String): User Parameters userId: StringReturns User
The user with the given ID, or null if the ID is invalid or the user is blocked.
|
getAccessToken
()
|
Return an access token string for this user, suitable for making REST calls against graph.oculus.com.
Signature
suspend fun getAccessToken(): String Returns String
The access token string.
|
sendAuthUrl
(
authUrl
)
|
Allows apps to initiate a login flow using the Meta Horizon App on a mobile device. The auth_url will be sent to the Horizon Mobile App and the user will be redirected to the auth_url to complete the login flow.
Signature
suspend fun sendAuthUrl(authUrl: String): Intent Parameters authUrl: StringReturns Intent
Intent - Returns an Intent that must be passed to Activity.startActivityForResult(Intent, int) (or similar) in order to send auth_url to Mobile app. The activity will prompt the user whether to allow sending auth_url.
|