SubscriptionPurchaseFlow

public final class SubscriptionPurchaseFlow extends CustomFlow

This class is responsible for tracking app performance during subscription purchase flows.

This class is thread-safe.

Functions

Link copied to clipboard
public boolean momentComplete(String momentName)
Completes all started instances of the specified custom moment.
public boolean momentComplete(String momentName, String momentId)
public boolean momentComplete(    String momentName,     String momentId,     Map<String, Object> properties)
Completes a started instance of the custom moment specified by the moment identifier.
Link copied to clipboard
public boolean momentFail(String momentName, String msg)
Fails all started instances of the specified custom moment and generates an error log message for each failed moment instance.
public boolean momentFail(    String momentName,     String momentId,     String msg)
public boolean momentFail(    String momentName,     String momentId,     String msg,     Map<String, Object> properties)
Fails a started instance of the custom moment specified by the moment identifier and sends an error log message for the failed moment instance.
Link copied to clipboard
public String momentStart(    String momentName,     boolean doesAllowScreenshot,     Map<String, Object> properties)
Starts a custom moment.
Link copied to clipboard
public boolean subscriptionPurchaseComplete()
public boolean subscriptionPurchaseComplete(Map<String, Object> properties)
Ends the subscription purchase moment and generates an info log message that indicates that the subscription purchase completed.
Link copied to clipboard
public boolean subscriptionPurchaseFail(String msg)
public boolean subscriptionPurchaseFail(    String msg,     Map<String, Object> properties,     boolean allowScreenshot)
Ends the subscription purchase moment and generates an error log message that indicates that the subscription purchase failed.
Link copied to clipboard
public boolean subscriptionPurchaseStart(    String orderId,     String subscriptionType,     Number amount,     String paymentType,     Map<String, Object> properties)
Starts a subscription purchase moment.