Meta XR Platform SDK (UPM) v71 Reference Guide
Meta XR Platform SDK (UPM) v71 Reference Guide
Select your platform
No SDKs available
No versions available

ApplicationLifecycle Class

This ApplicationLifecycle API provides methods for managing the lifecycle of an application, including retrieving information about how the application was started, such as the type of intent LaunchDetails::LaunchType, logging the results of deeplinking attempts, whether it was LaunchResult.Success or not, and handling changes to the launch intent.

Static Member Functions

Returns information about how the application was started. This function provides details about the launch intent, such as the type of intent LaunchDetails::LaunchType and any additional data that was passed along with it. By calling this function, you can gain insight into how your application was launched and take appropriate action based on that information.
Logs if the user successfully deeplinked to a destination. This function takes two parameters: a string tracking ID and a launch result. The tracking ID is used to identify the specific deeplink attempt, while the launch result indicates whether the deeplink was LaunchResult::Success or not. By logging this information, you can track the effectiveness of your deeplinking efforts and make adjustments as needed.
Parameters
trackingID
The Tracking ID is a unique identifier assigned to each deeplink attempt. It allows developers to track the success or failure of individual deeplink attempts and gain insights into the effectiveness of their deeplinking efforts.
result
An enum that indicates the outcome of an attempt to launch this application through a deeplink, including whether the attempt was LaunchResult::Success or not, and if not, the specific reasons for the failure.
This event is triggered when a launch intent is received, whether it's a cold or warm start. The payload contains the type of intent that was received. To obtain additional details, you should call the ApplicationLifecycle.GetLaunchDetails() function.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon