enqueueFire

abstract fun enqueueFire(pixel: Pixel.PixelName, parameters: Map<String, String> = emptyMap(), encodedParameters: Map<String, String> = emptyMap())

Sends a pixel with the specified name and parameters. Unlike the fire() method, this method also persists the pixel in the local database, allowing it to be retried in case of network issues or other failures.

The operation is asynchronous, making this method safe to call from any thread.

Parameters

pixel

The name of the pixel event to be sent.

parameters

A map of parameters to be included with the pixel event. These parameters are URL-encoded before being sent.

encodedParameters

A map of parameters that are already URL-encoded. Use this when the parameters are pre-encoded.


abstract fun enqueueFire(pixelName: String, parameters: Map<String, String> = emptyMap(), encodedParameters: Map<String, String> = emptyMap())

Sends a pixel with the specified name and parameters. Unlike the fire() method, this method also persists the pixel in the local database, allowing it to be retried in case of network issues or other failures.

The operation is asynchronous, making this method safe to call from any thread.

Parameters

pixelName

The name of the pixel event to be sent.

parameters

A map of parameters to be included with the pixel event. These parameters are URL-encoded before being sent.

encodedParameters

A map of parameters that are already URL-encoded. Use this when the parameters are pre-encoded.