Skip to content
Antoine CLOP edited this page Aug 1, 2020 · 3 revisions

Patch

Patch are League of Legends versions. A new patch is most of the time released every week.

Methods

  • PatchVersion()

PatchVersion

Parameters

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.

Usage example

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