class ApplicationLifecycle
ApplicationLifecycle
()
|
Signature
constructor() Returns
ApplicationLifecycle
|
getLaunchDetails
()
|
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.
Signature
suspend fun getLaunchDetails(): LaunchDetails Returns
LaunchDetails
|
launchIntentChanged
()
|
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.
Signature
fun launchIntentChanged(): Flow<String> Returns
Flow<String>
|
logDeeplinkResult
(
trackingId
, result
)
|
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.
Signature
suspend fun logDeeplinkResult(trackingId: String, result: LaunchResult) Parameters
trackingId:
String
result:
LaunchResult
|