Exemple #1
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Q))
        {
            if (bInitComplete)
            {
#if !UNITY_ANDROID
                Deeplink.GoToApp(GoToAppHandler, GoToApp_Viveport_ID, LaunchData);
#else
                Deeplink.GoToApp(new GotoAppDeeplinkChecker(), GoToApp_Viveport_ID, LaunchData);
#endif
            }
        }

        if (Input.GetKeyDown(KeyCode.W))
        {
            if (bInitComplete)
            {
#if !UNITY_ANDROID
                Deeplink.GoToApp(GoToAppHandler, GoToApp_Viveport_ID, LaunchData, LaunchBranchName);
#else
                Deeplink.GoToApp(new GotoAppDeeplinkChecker(), GoToApp_Viveport_ID, LaunchData, LaunchBranchName);
#endif
            }
        }

        if (Input.GetKeyDown(KeyCode.E))
        {
            if (bInitComplete)
            {
#if !UNITY_ANDROID
                Deeplink.GoToStore(GoToStoreHandler, GoToStore_Viveport_ID);
#else
                Deeplink.GoToStore(new GotoStoreDeeplinkChecker(), GoToStore_Viveport_ID);
#endif
            }
        }

        if (Input.GetKeyDown(KeyCode.R))
        {
            if (bInitComplete)
            {
#if !UNITY_ANDROID
                Deeplink.GoToAppOrGoToStore(GoToAppOrGoToStoreHandler, GoToStore_Viveport_ID, LaunchData);
#else
                Deeplink.GoToAppOrGoToStore(new GoToAppOrGoToStoreDeeplinkChecker(), GoToStore_Viveport_ID, LaunchData);
#endif
            }
        }

        if (Input.GetKeyDown(KeyCode.A))
        {
            if (bInitComplete)
            {
                var launchDataString = Deeplink.GetAppLaunchData();
                Debug.Log(launchDataString);
            }
        }
    }
Exemple #2
0
 public string GetLaunchData()
 {
     if (deeplinkIsReady)
     {
         return(Deeplink.GetAppLaunchData());
     }
     else
     {
         return("");
     }
 }
Exemple #3
0
 // Token: 0x06000E49 RID: 3657 RVA: 0x0005BE4C File Offset: 0x0005A04C
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Q) && ViveportDemo_Deeplink.bInitComplete)
     {
         Deeplink.GoToApp(new StatusCallback2(ViveportDemo_Deeplink.GoToAppHandler), this.GoToApp_Viveport_ID, this.LaunchData);
     }
     if (Input.GetKeyDown(KeyCode.W) && ViveportDemo_Deeplink.bInitComplete)
     {
         Deeplink.GoToApp(new StatusCallback2(ViveportDemo_Deeplink.GoToAppHandler), this.GoToApp_Viveport_ID, this.LaunchData, this.LaunchBranchName);
     }
     if (Input.GetKeyDown(KeyCode.E) && ViveportDemo_Deeplink.bInitComplete)
     {
         Deeplink.GoToStore(new StatusCallback2(ViveportDemo_Deeplink.GoToStoreHandler), this.GoToStore_Viveport_ID);
     }
     if (Input.GetKeyDown(KeyCode.R) && ViveportDemo_Deeplink.bInitComplete)
     {
         Deeplink.GoToAppOrGoToStore(new StatusCallback2(ViveportDemo_Deeplink.GoToAppOrGoToStoreHandler), this.GoToStore_Viveport_ID, this.LaunchData);
     }
     if (Input.GetKeyDown(KeyCode.A) && ViveportDemo_Deeplink.bInitComplete)
     {
         Debug.Log(Deeplink.GetAppLaunchData());
     }
 }