Network Configuration
Represents the network communication configuration allowing the tracker to be able to send events to the Snowplow collector.
Default values: method = HttpMethod.POST; protocol = Protocol.HTTPS; timeout = 5 seconds;
Constructors
Types
Functions
A custom path which will be added to the endpoint URL to specify the complete URL of the collector when paired with the POST method.
An OkHttp client that will be used in the emitter, you can provide your own if you want to share your Singleton client's interceptors, connection pool etc.. Otherwise a new one is created.
An OkHttp cookie jar to override the default cookie jar that stores cookies in SharedPreferences. The cookie jar will be ignored in case custom okHttpClient
is configured.
The timeout set for the requests to the collector. The maximum timeout for emitting events. If emit time exceeds this value TimeOutException will be thrown.