Contents

fetchAndObserveInsights(forConfigurations:errorHandler:)

Retrieves and observes insights data, using an array of specific data series configurations.

Declaration

func fetchAndObserveInsights(forConfigurations configurations: [OCKDataSeriesConfiguration], errorHandler: ((Error) -> Void)? = nil)

Parameters

  • configurations :

    An array of configuration objects, that specify which data the controller queries and how it displays that data in the graph.

  • errorHandler :

    An error handler the function uses when it encounters an error.