Skip to content

Commit 2c1b20e

Browse files
authored
Merge pull request #3 from adjust/readme_update
Readme update
2 parents 9e7c113 + 553b3ce commit 2c1b20e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ This is the Android Adobe Mobile Extension of Adjust™. You can read more about
2929
### Additional features
3030

3131
* [Attribution callback](#af-attribution-callback)
32+
* [Deferred deep linking callback](#af-deferred-deep-linking-callback)
3233

3334

3435
## Quick start
@@ -271,6 +272,31 @@ AdjustAdobeExtension.registerExtension(config);
271272

272273
The listener function is called after the SDK receives the final attribution data. Within the listener function, you'll have access to the `attribution` parameter.
273274

275+
### <a id="af-deferred-deep-linking-callback"></a>Deferred deep linking callback
276+
277+
The Adjust SDK opens the deferred deep link by default. There is no extra configuration needed. But if you wish to control whether the Adjust SDK will open the deferred deep link or not, you can do it with a callback method in the config object.
278+
279+
With the extension config instance, add the deferred deep linking callback before you start the SDK:
280+
281+
```java
282+
AdjustAdobeExtensionConfig config = new AdjustAdobeExtensionConfig(environment);
283+
284+
config.setOnDeeplinkResponseListener(new OnDeeplinkResponseListener() {
285+
@Override
286+
public boolean launchReceivedDeeplink(Uri deeplink) {
287+
// ...
288+
if (shouldAdjustSdkLaunchTheDeeplink(deeplink)) {
289+
return true;
290+
} else {
291+
return false;
292+
}
293+
}
294+
});
295+
296+
AdjustAdobeExtension.registerExtension(config);
297+
```
298+
299+
After the Adjust SDK receives the deep link information from our backend, the SDK will deliver you its content via the listener and expect the boolean return value from you. This return value represents your decision on whether or not the Adjust SDK should launch the activity to which you have assigned the scheme name from the deeplink.
274300

275301
[dashboard]: http://adjust.com
276302
[adjust.com]: http://adjust.com

0 commit comments

Comments
 (0)