AppmetricaAdapterBase

open class AppmetricaAdapterBase : VarioqubReporter, VarioqubIdProvider

The base adapter class.

Implements most of the VarioqubReporter и VarioqubIdProvider methods.

  • Undocumented

    Declaration

    Swift

    public var varioqubKey: String
  • Undocumented

    Declaration

    Swift

    public let handleQueue: DispatchQueue
  • The adapter name.

    Declaration

    Swift

    public var varioqubName: String { get }
  • Sets an experiment.

    Declaration

    Swift

    open func setExperiments(_ experiments: String)

    Parameters

    experiments

    The experiment identifier.

  • Sets triggered IDs.

    Declaration

    Swift

    open func setTriggeredTestIds(_ triggeredTestIds: VarioqubTestIDSet)

    Parameters

    triggeredTestIds

    The set of the triggered test IDs.

  • Sends an activation event.

    Declaration

    Swift

    open func sendActivateEvent(_ eventData: VarioqubEventData)

    Parameters

    eventData

    The struct that represents the information about activation.

  • Obtains identifiers(deviceId and userId).

    Declaration

    Swift

    open func fetchIdentifiers(completion: @escaping VarioqubIdProvider.Completion)

    Parameters

    completion

    Notifies when the operation ends.

  • Uses the reporter with the apiKey.

    This method works only on AppMetrica 5 and newer. If you use MetricaAdapterReflection, it may throw an error if your AppMetrica doesn’t support extras for the custom reporter.

    Declaration

    Swift

    open func setCustomRepoter(apiKey: String) throws

    Parameters

    apiKey

    The apiKey for the reporter.