public static DeepLinkData GetDeepLinkData() { if (WasLaunchedFromAlcove) { LaunchDetails launchDetails = Oculus.Platform.ApplicationLifecycle.GetLaunchDetails(); return(ParseLaunchDetails(launchDetails)); } return(null); }
public async Task <bool> Launch(double longitude, double latitude, string name) { this.LastLaunch = new LaunchDetails { Longitude = longitude, Latitude = latitude, Name = name }; return(true); }
void InitCallback(Message <PlatformInitialize> msg) { if (msg.IsError) { TerminateWithError(msg); return; } LaunchDetails launchDetails = ApplicationLifecycle.GetLaunchDetails(); SocialPlatformManager.LogOutput("App launched with LaunchType " + launchDetails.LaunchType); // First thing we should do is perform an entitlement check to make sure // we successfully connected to the Oculus Platform Service. Entitlements.IsUserEntitledToApplication().OnComplete(IsEntitledCallback); }
public static DeepLinkData ParseLaunchDetails(LaunchDetails launchDetails) { try { DeepLinkData launchData = JsonConvert.DeserializeObject <DeepLinkData>(launchDetails.DeeplinkMessage); return(launchData); } catch (Exception e) { Debug.LogError("Failed to parse deep link message. Printing Exception."); Debug.LogException(e); Debug.Log("Deep link message was " + launchDetails.DeeplinkMessage); return(null); } }
public static bool CheckForAlcoveLaunch() { LaunchDetails launchDetails = Oculus.Platform.ApplicationLifecycle.GetLaunchDetails(); switch (launchDetails.LaunchType) { case LaunchType.Deeplink: DeepLinkData launchData = ParseLaunchDetails(launchDetails); if (launchData.SenderAppId.Equals("2855012877858033", StringComparison.InvariantCultureIgnoreCase)) { return(true); } break; default: break; } return(false); }
public async Task<bool> Launch(double longitude, double latitude, string name) { this.LastLaunch = new LaunchDetails { Longitude = longitude, Latitude = latitude, Name = name }; return true; }