-
Notifications
You must be signed in to change notification settings - Fork 13
Status
Antoine CLOP edited this page Jan 23, 2021
·
3 revisions
Service status list all incidents and updates convering all League of Legends services.
- Status(on: Region)
- 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.
league.lolAPI.getStatus(on: .EUW) { (status, errorMsg) in
if let status = status {
print("Success!")
}
else {
print("Request failed cause: \(errorMsg ?? "No error description")")
}
}