The following example highlights how a developer might use the VIVEPORT DRM 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.
Note : Use the DRM wrapper instead of the API whenever possible, as it provides better protection. The DRM API is provided for compatibility only, and should only be used for cases where the wrapper causes unresolvable compatibility issues. For more information on the DRM wrapper, see the VIVEPORT Submission Guide .
Important : VIVE WAVE developers need to modify AndroidManifest.xml to include the
com.viveport.CHECK_LICENSEpermission. See VIVE WAVE permissions for details.
Call the Top Level API using
Viveport.Api.Initto initialize the VIVEPORT SDK. For Unity developers, this is typically called as Monobehavior
Viveport.Api.Getlicenseto verify that the current end-user account is allowed to launch the title. If there is an error, an error code will be returned.
Viveport.Api.Shutdownto release VIVEPORT SDK resources when no longer needed. In Unity, this is typically either in MonoBehavior