Builder

class Builder

The Builder class is used to build a new HttpConnectivityOptions instance using a builder pattern.

Properties

Link copied to clipboard

A Boolean indicating whether the Connectivity instance should automatically start.

Link copied to clipboard
var method: HttpMethod

The HttpMethod to use for the HTTP requests.

Link copied to clipboard

Converts an Int to minutes.

Link copied to clipboard

The interval between each poll in milliseconds.

Link copied to clipboard
var port: Int

The port to use for the HTTP requests.

Link copied to clipboard

Converts an Int to seconds.

Link copied to clipboard

The timeout for the HTTP requests in milliseconds.

Functions

Link copied to clipboard
Link copied to clipboard

Sets the callback when a poll is made.

Link copied to clipboard

Adds a url to the list of urls to monitor.

Link copied to clipboard

Sets the list of urls to monitor.