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

The following example highlights how a developer might use the VIVEPORT Deeplink API in their title.

Make sure you have a VIVEPORT ID and Key for your title before trying to implement any of the API functions.

  1. Call the Top Level API using Viveport.Api.Init to initialize the VIVEPORT SDK. For Unity developers, this is typically called as Monobehavior Start() .
  2. If you’re using the DRM API, call Viveport.Api.Getlicense to verify that the current end-user account is allowed to launch the title.
  3. Call Viveport.Deeplink.IsReady() to initialize the Deeplink API.
  4. Do any of the following:
    • Launch your title directly by calling Viveport.Deeplink.GoToApp with the VIVEPORT ID of your title.
    • Go to the VIVEPORT page for your title by calling Viveport.Deeplink.GoToStore .
    • Go to the VIVEPORT store main page by calling Viveport.Deeplink.GoToStore without a viveportId .
    • Create a conditional link using Viveport.Deeplink.GoToApp .
    • While content is running, Viveport.Deeplink.GetLaunchData can be called to get launch data for switching between titles.
  5. 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() .