AnalyticsServiceProtocol
public protocol AnalyticsServiceProtocol : AnyObject
A protocol defining the contract for an analytics service responsible for sending event payloads.
-
Sends a batch of analytics events payload to the server.
- payload: An
AmplitudeEventsBatchPayload
object containing the events to be sent. completion: A closure to be called with the result of the request. It provides a
Result<String, GiniError>
indicating success or failure.
Note
Conforming types are expected to provide their own implementation for this method.
Declaration
Swift
func sendEventsPayload(payload: AmplitudeEventsBatchPayload, completion: @escaping CompletionResult<String>)
- payload: An