AdjustAppStoreSubscription class

Warning:
Adjust no longer offers subscription measuring for new customers. If you are already set up with subscription measuring, reach out to your dedicated Technical Account Manager or support@adjust.com.

Use this class to measure App Store subscriptions.

Methods

AdjustAppStoreSubscription

Initializes the subscription object with required properties:

  • price – The price of the subscription.
  • currency – The code of the currency used in the transaction.
  • transactionId - The ID of a successful payment transaction.
  • receipt - The receipt of the transaction.
AdjustAppStoreSubscription(String _price, String _currency, String _transactionId, String _receipt)
Dart
AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription(
    price,
    currency,
    transactionId,
    receipt);

setTransactionDate

Records the date and time of the purchase.

void setTransactionDate(String _transactionDate)
Dart
AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription(
    price,
    currency,
    transactionId,
    receipt);

//...
subscription.setTransactionDate(transactionDate);

setSalesRegion

Records the region in which a subscription sale took place.

void setSalesRegion(String _salesRegion)
Dart
AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription(
    price,
    currency,
    transactionId,
    receipt);
//...
subscription.setSalesRegion(salesRegion);

addCallbackParameter

Adds callback parameters as string key-value pairs.

void addCallbackParameter(String key, String value)
Dart
AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription(
    price,
    currency,
    transactionId,
    receipt);
//...
subscription.addCallbackParameter('key1', 'value1');
subscription.addCallbackParameter('key2', 'value2');

addPartnerParameter

Adds partner parameters as string key-value pairs.

void addPartnerParameter(String key, String value)
Dart
AdjustAppStoreSubscription subscription = new AdjustAppStoreSubscription(
    price,
    currency,
    transactionId,
    receipt);
//...
subscription.addPartnerParameter('key1', 'value1');
subscription.addPartnerParameter('key2', 'value2');