fire

abstract fun fire(pixel: Pixel.PixelName, parameters: Map<String, String> = emptyMap(), encodedParameters: Map<String, String> = emptyMap(), type: Pixel.PixelType = Count)

Sends a pixel with the specified name and parameters.

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.

type

The type of pixel event to be sent.


abstract fun fire(pixelName: String, parameters: Map<String, String> = emptyMap(), encodedParameters: Map<String, String> = emptyMap(), type: Pixel.PixelType = Count)

Sends a pixel with the specified name and parameters.

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.

type

The type of pixel event to be sent.