handlePostInstallIntent

Button Merchant Library

Version: 1.6.1

Imports

Exceptions

Modules

handlePostInstallIntent

open fun handlePostInstallIntent(
    @NonNull context: Context,
    @NonNull listener: PostInstallIntentListener
)

Checks to see if the user visited a URL prior to installing your app. If a URL is found, onResult will be called on the listener you passed, and you are responsible for navigating the user to the relevant content in your app. If a URL is not found or an error occurs, onResult will be called on your listener, and you can continue with your normal launch sequence. This method checks for a post-install URL exactly one time after a user has installed your app. Subsequent calls will result in a call to onResult on your listener. You do not need to wait for the listener before continuing with your normal launch sequence, but you should be prepared to handle an intent if a post-install URL is found.

Parameters