Pixel
interface Pixel
Primary interface for sending anonymous analytics events (pixels).
Types
Functions
Link copied to clipboard
abstract fun enqueueFire(pixel: Pixel.PixelName, parameters: Map<String, String> = emptyMap(), encodedParameters: Map<String, String> = emptyMap())
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.
Link copied to clipboard
abstract fun fire(pixel: Pixel.PixelName, parameters: Map<String, String> = emptyMap(), encodedParameters: Map<String, String> = emptyMap(), type: Pixel.PixelType = Count)
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.