Skip to content
Antoine CLOP edited this page Jan 23, 2021 · 3 revisions

Service Status

Service status list all incidents and updates convering all League of Legends services.

Methods

Status

Parameters

  • Region: A region to get status.

Since this method is asynchrone, there is not return value. Response will be provided with a handler closure with parameters: (ServiceStatus?, String?). ServiceStatus contains all status information and will be nil only if an error occurred. The String parameter contains the first error description encountered if existing.

Usage example

league.lolAPI.getStatus(on: .EUW) { (status, errorMsg) in
    if let status = status {
        print("Success!")
    }
    else {
        print("Request failed cause: \(errorMsg ?? "No error description")")
    }
}
Clone this wiki locally