Ejemplo n.º 1
0
 public void GoToStore(string viveportId = "")
 {
     if (deeplinkIsReady)
     {
         Deeplink.GoToStore(GoToStore, viveportId);
     }
 }
Ejemplo n.º 2
0
 //Currently, launchData cannot be empty.If you don't need to send data to target app, please send " " or "N/A" to avoid exceptions.
 public void GoToAppOrGoToStore(string viveportId, string launchData)
 {
     if (deeplinkIsReady)
     {
         Deeplink.GoToAppOrGoToStore(GoToAppOrGoToStoreHandler, viveportId, launchData);
     }
 }
Ejemplo n.º 3
0
 private void InitIsStart(int code, string message)
 {
     if (code == SUCCESS)
     {
         Deeplink.IsReady(DeeplinkIsReadyCallback);
     }
 }
Ejemplo n.º 4
0
 //Currently, launchData cannot be empty. If you don't need to send data to target app, please send " " or "N/A" to avoid exceptions.
 public void GoToApp(string viveportId, string launchData, string branchName)
 {
     if (deeplinkIsReady)
     {
         Deeplink.GoToApp(GoToAppHandler, viveportId, launchData, branchName);
     }
 }
Ejemplo n.º 5
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);
            }
        }
    }
Ejemplo n.º 6
0
 void Awake()
 {
     Instance = this;
             #if UNITY_ANDROID
     URLHandler(StreetHawk.GetURI());
             #elif UNITY_EDITOR
     URL = null;
             #endif
 }
Ejemplo n.º 7
0
 public string GetLaunchData()
 {
     if (deeplinkIsReady)
     {
         return(Deeplink.GetAppLaunchData());
     }
     else
     {
         return("");
     }
 }
Ejemplo n.º 8
0
 // Token: 0x06000E46 RID: 3654 RVA: 0x0005BDCC File Offset: 0x00059FCC
 private static void InitStatusHandler(int nResult)
 {
     if (nResult == 0)
     {
         Debug.Log("VIVEPORT init pass");
         Deeplink.IsReady(new StatusCallback(ViveportDemo_Deeplink.IsReadyHandler));
         return;
     }
     Debug.Log("VIVEPORT init fail");
     Application.Quit();
 }
Ejemplo n.º 9
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());
     }
 }
Ejemplo n.º 10
0
 internal void NavigateWithDeeplink(Uri uri)
 {
     Deeplink.OpenLink(AppFrame, uri);
 }