Skip to content

Ranked Tiers

Antoine CLOP edited this page Aug 2, 2020 · 4 revisions

Ranked Tiers

Ranked Tiers represent the major division of a player in ranked games. It goes from Iron to Challenger and can be divided in sub divisions. You'll get tier informations from methods like Ranked Leagues or Spectator Live Game.

Methods

Get Emblem

Parameters

  • RankedTier: Represents the League Ranked Tier to get the image from.

This method is synchrone, and will return the UIImage corresponding to the RankedTier parameter. Return value will be nil only if RankedTier is Unknown.

Usage example

guard let rankedTier = RankedTier(.Diamond) else { return }
if let rankedTierImage = league.lolAPI.getEmblem(for: rankedTier) {
    print("Success!")
}
else {
    print("Failure: Perhaps Unknown was provided, otherwise it is a LeagueAPI bug, please create an issue")
}
Clone this wiki locally