-
Notifications
You must be signed in to change notification settings - Fork 13
Patch
Antoine CLOP edited this page Aug 1, 2020
·
3 revisions
Patch are League of Legends versions. A new patch is most of the time released every week.
- PatchVersion()
Since this method is asynchrone, there is not return value. Response will be provided with a handler closure with parameters: (String?, String?)
. String contains the current patch deployed and will be nil only if an error occured. The String parameter contains the first error description encountered if existing.
league.lolAPI.getPatchVersion() { (currentPatchVersion, errorMsg) in
if let currentPatchVersion = currentPatchVersion {
print("Success!")
}
else {
print("Request failed cause: \(errorMsg ?? "No error description")")
}
}