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

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() .