The OneLink Developer Hub

Welcome to the OneLink developer hub. You'll find comprehensive guides and documentation to help you start working with OneLink as quickly as possible, as well as support if you get stuck. Let's jump right in!

API reference

onAppOpenAttribution

Description

Get data for users when the app opens via a deep link (not via deferred deep linking).

Method signature

public void onAppOpenAttribution(Map<String, String> conversionData);

performOnAppAttribution

Description

This function allows developers to manually re-trigger onAppOpenAttribution and enables developers to access deep link data at any time without connection to the app launch process. This might be needed because the regular onAppOpenAttribution callback is only called if the app was opened with the deep link.

Method signature

public void performOnAppAttribution(Context context, Uri uri);

onAttributionFailure

Description

Handle errors in getting deep link data.

Method signature

public void onAttributionFailure(String errorMessage)

onConversionDataSuccess

Description

Get conversion data after an install. Useful for deferred deep linking.

Method signature

public void onConversionDataSuccess(Map<String, String> conversionData);

onConversionDataFail

Description

Handle errors when failing to get conversion data from installs.

Method signature

public void onConversionDataFail(String errorMessage);

Updated about a month ago


API reference


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.