Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dgvawter committed Apr 18, 2019
1 parent ca3008a commit 110e1ac
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Expand Up @@ -12,7 +12,8 @@ In order to use the AppsFlyer wrapper:

1. [Follow the steps here](https://firebase.google.com/docs/analytics/android/start)
to set up the Google Analytics for Firebase SDK in your app.
2. Copy the source files inside the AppsFlyerWrapper directory into your project.
2. Copy the source files inside the AppsFlyerWrapper directory into your
project.
3. Replace supported references to `AppsFlyerLib.getInstance()` with
`AppsFlyerLibWrapper.getInstance()`, and references to
`AppsFlyerProperties.getInstance()` with
Expand All @@ -21,3 +22,28 @@ In order to use the AppsFlyer wrapper:
Some methods are not supported by the wrapper. For these methods, directly call
the base implementation in `AppsFlyerLib.getInstance()` or
`AppsFlyerProperties.getInstance()`.

### Supported Methods

The following API methods and properties are supported in the AppsFlyer wrapper.
Use the wrapper by replacing `AppsFlyerLib.getInstance()` in these instances
with `AppsFlyerLibWrapper.getInstance()`:

* `AppsFlyerLib.setAppUserId(id)`
* `AppsFlyerLib.setCustomerUserId(id)`
* `AppsFlyerLib.setCustomerIdAndTrack(id, context)`
* `AppsFlyerLib.init(key, appsFlyerConversionListener, context)`
* `AppsFlyerLib.startTracking(application)`
* `AppsFlyerLib.startTracking(application, key)`
* `AppsFlyerLib.startTracking(application, key, listener)`
* `AppsFlyerLib.setCurrencyCode(currencyCode)`
* `AppsFlyerLib.trackEvent(context, eventName, eventValue)`
* `AppsFlyerLib.setDeviceTrackingDisabled(isDisabled)`
* `AppsFlyerLib.setPreinstallAttribution(mediaSource, campaign, siteId)`
* `AppsFlyerLib.setMinTimeBetweenSessions(seconds)`

Use the wrapper by replacing `AppsFlyerProperties.getInstance()` in these
instances with `AppsFlyerPropertiesWrapper.getInstance()`:

* `AppsFlyerPropertiesWrapper.set(key, value)`
* `AppsFlyerPropertiesWrapper.remove(key)`

0 comments on commit 110e1ac

Please sign in to comment.