Please Select Your Location

Thailand
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
India
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malaysia
Malta
Mexico
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Singapore
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Việt Nam
المملكة العربية السعودية (Arabic)

Example usage

Make sure you have a VIVEPORT ID and VIVEPORT Key from the VIVEPORT Developer Console .

Make sure you have a Photon secret. See Photon Secret .

  1. Initialize the Top Level API by calling Viveport.Api.Init . For Unity developers, this is typically called as Monobehavior Start() .
  2. If you’re using the DRM API, call Viveport.Api.Getlicense to verify if the current end user account is allowed to launch the content.
  3. Check that there is a connection to VIVEPORT and initialize the Session Token API by calling Viveport.Token.IsReady() .
  4. Get a session token by calling Viveport.Token.GetSessionToken . The token is retrieved by the message of callback .
  5. Use the token in your code. Make sure your code uses CustomAuthenticationType.Viveport , and make sure to set the AuthParameter to "userToken" as the VIVEPORT token. For details, see Photon VIVEPORT Authentication on the Photon Website.
  6. Call Viveport.Api.Shutdown to release VIVEPORT SDK resources when no longer needed. In Unity, this is typically either in MonoBehavior OnDestroy() or before Application.Quit() .