Functions
The following functions are available globally.
-
Fetch Berry list
Declaration
Swift
public func fetchBerryList() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Berry Information
Declaration
Swift
public func fetchBerry(berryId: String) -> Promise<PKMBerry>
Parameters
berryId
Berry ID
Return Value
A promise with PKMBerry
-
Fetch Berry Firmness list
Declaration
Swift
public func fetchBerryFirmnessList() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Berry Firmness Information
Declaration
Swift
public func fetchBerryFirmness(berryFirmnessId: String) -> Promise<PKMBerryFirmness>
Parameters
berryFirmnessId
Berry Firmness ID
Return Value
A promise with PKMBerryFirmness
-
Fetch Berry Flavours list
Declaration
Swift
public func fetchBerryFlavours() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Berry Flavour Information
Declaration
Swift
public func fetchBerryFlavour(berryFlavourId: String) -> Promise<PKMBerryFlavour>
Parameters
berryFlavourId
Berry Flavour ID
Return Value
A promise with PKMBerryFlavour
-
Fetch Contest list
Declaration
Swift
public func fetchContestList() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Contest Type Information
Declaration
Swift
public func fetchContestType(contestTypeId: String) -> Promise<PKMContestType>
Parameters
contestTypeId
Contest Type ID
Return Value
A promise with PKMContestType
-
Fetch Contest Effects list
Declaration
Swift
public func fetchContestEffects() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Contest Effect Information
Declaration
Swift
public func fetchContestEffect(contestEffectId: String) -> Promise<PKMContestEffect>
Parameters
contestEffectId
Contest Effect ID
Return Value
A promise with PKMContestEffect
-
Fetch Super Contest Effects list
Declaration
Swift
public func fetchSuperContestEffects() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Super Contest Effect Information
Declaration
Swift
public func fetchSuperContestEffect(superContestEffectId: String) -> Promise<PKMSuperContestEffect>
Parameters
superContestEffectId
Super Contest Effect ID
Return Value
A promise with PKMSuperContestEffect
-
Fetch Encounter Methods list
Declaration
Swift
public func fetchEncounterMethods() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Encounter Method Information
Declaration
Swift
public func fetchEncounterMethod(encounterMethodId: String) -> Promise<PKMEncounterMethod>
Parameters
encounterMethodId
Encounter Method ID
Return Value
A promise with PKMEncounterMethod
-
Fetch Encounter Conditions list
Declaration
Swift
public func fetchEncounterConditions() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Encounter Condition Information
Declaration
Swift
public func fetchEncounterCondition(encounterConditionId: String) -> Promise<PKMEncounterCondition>
Parameters
encounterConditionId
Encounter Condition ID
Return Value
A promise with PKMEncounterCondition
-
Fetch Encounter Condition Values list
Declaration
Swift
public func fetchEncounterConditionValues() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Encounter Condition Value Information
Declaration
Swift
public func fetchEncounterConditionValue(encounterConditionValueId: String) -> Promise<PKMEncounterConditionValue>
Parameters
encounterConditionValueId
Encounter Condition Value ID
Return Value
A promise with PKMEncounterConditionValue
-
Fetch Encounter Chains list
Declaration
Swift
public func fetchEvolutionChains() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Evolution Chain Information
Declaration
Swift
public func fetchEvolutionChain(evolutionChainId: String) -> Promise<PKMEvolutionChain>
Parameters
evolutionChainId
Evolution Chain ID
Return Value
A promise with PKMEvolutionChain
-
Fetch Encounter Triggers list
Declaration
Swift
public func fetchEvolutionTriggers() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Evolution Trigger Information
Declaration
Swift
public func fetchEvolutionTrigger(evolutionTriggerId: String) -> Promise<PKMEvolutionTrigger>
Parameters
evolutionTriggerId
Evolution Trigger ID
Return Value
A promise with PKMEvolutionTrigger
-
Fetch Generations list
Declaration
Swift
public func fetchGenerations() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Generation Information
Declaration
Swift
public func fetchGeneration(generationId: String) -> Promise<PKMGeneration>
Parameters
generationId
Generation ID
Return Value
A promise with PKMGeneration
-
Fetch Pokedexes list
Declaration
Swift
public func fetchPokedexes() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokedex Information
Declaration
Swift
public func fetchPokedex(pokedexId: String) -> Promise<PKMPokedex>
Parameters
pokedexId
Pokedex ID
Return Value
A promise with PKMPokedex
-
Fetch Versions list
Declaration
Swift
public func fetchVersions() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Version Information
Declaration
Swift
public func fetchVersion(versionId: String) -> Promise<PKMVersion>
Parameters
versionId
Version ID
Return Value
A promise with PKMVersion
-
Fetch Versions Groups list
Declaration
Swift
public func fetchVersionGroups() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Version Group Information
Declaration
Swift
public func fetchVersionGroup(versionGroupId: String) -> Promise<PKMVersionGroup>
Parameters
versionGroupId
Version Group ID
Return Value
A promise with PKMVersionGroup
-
Fetch Items list
Declaration
Swift
public func fetchItems() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Item Information
Declaration
Swift
public func fetchItem(itemId: String) -> Promise<PKMItem>
Parameters
itemId
Item ID
Return Value
A promise with PKMItem
-
Fetch Item Attributes list
Declaration
Swift
public func fetchItemAttributes() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Item Attribute Information
Declaration
Swift
public func fetchItemAttribute(itemAttributeId: String) -> Promise<PKMItemAttribute>
Parameters
itemAttributeId
Item Attribute ID
Return Value
A promise with PKMItemAttribute
-
Fetch Item Categories list
Declaration
Swift
public func fetchItemCategories() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Item Category Information
Declaration
Swift
public func fetchItemCategory(itemCategoryId: String) -> Promise<PKMItemCategory>
Parameters
itemCategoryId
Item Category ID
Return Value
A promise with PKMItemCategory
-
Fetch Item Fling Effects list
Declaration
Swift
public func fetchItemFlingEffects() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Item Fling Effect Information
Declaration
Swift
public func fetchItemFlingEffect(itemFlingEffectsId: String) -> Promise<PKMItemFlingEffect>
Parameters
itemFlingEffectsId
Item Fling Effect ID
Return Value
A promise with PKMItemFlingEffect
-
Fetch Item Pockets list
Declaration
Swift
public func fetchItemPockets() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Item Pocket Information
Declaration
Swift
public func fetchItemPocket(itemPocketId: String) -> Promise<PKMItemPocket>
Parameters
itemPocketId
Item Pocket ID
Return Value
A promise with PKMItemPocket
-
Fetch Moves list
Declaration
Swift
public func fetchMoves() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Move Information
Declaration
Swift
public func fetchMove(moveId: String) -> Promise<PKMMove>
Parameters
moveId
Move ID
Return Value
A promise with PKMMove
-
Fetch Moves Ailments list
Declaration
Swift
public func fetchMoveAilments() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Move Ailment Information
Declaration
Swift
public func fetchMoveAilment(moveAilmentId: String) -> Promise<PKMMoveAilment>
Parameters
moveAilmentId
Move Ailment ID
Return Value
A promise with PKMMoveAilment
-
Fetch Moves Battle Styles list
Declaration
Swift
public func fetchMoveBattleStyles() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Move Battle Style Information
Declaration
Swift
public func fetchMoveBattleStyle(moveBattleStyleId: String) -> Promise<PKMMoveBattleStyle>
Parameters
moveBattleStyleId
Move Battle Style ID
Return Value
A promise with PKMMoveBattleStyle
-
Fetch Moves Categories list
Declaration
Swift
public func fetchMoveCategories() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Move Category Information
Declaration
Swift
public func fetchMoveCategory(moveCategoryId: String) -> Promise<PKMMoveCategory>
Parameters
moveCategoryId
Move Category ID
Return Value
A promise with PKMMoveCategory
-
Fetch Moves Damage Classes list
Declaration
Swift
public func fetchMoveDamageClasses() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Move Damage Class Information
Declaration
Swift
public func fetchMoveDamageClass(moveDamageClassId: String) -> Promise<PKMMoveDamageClass>
Parameters
moveDamageClassId
Move Damage Class ID
Return Value
A promise with PKMMoveDamageClass
-
Fetch Moves Learn Methods list
Declaration
Swift
public func fetchMoveLearnMethods() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Move Learn Method Information
Declaration
Swift
public func fetchMoveLearnMethod(moveLearnMethodId: String) -> Promise<PKMMoveLearnMethod>
Parameters
moveLearnMethodId
Move Learn Method ID
Return Value
A promise with PKMMoveLearnMethod
-
Fetch Moves Targets list
Declaration
Swift
public func fetchMoveTargets() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Move Target Information
Declaration
Swift
public func fetchMoveTarget(moveTargetId: String) -> Promise<PKMMoveTarget>
Parameters
moveTargetId
Move Target ID
Return Value
A promise with PKMMoveTarget
-
Fetch Locations list
Declaration
Swift
public func fetchLocations() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Location Information
Declaration
Swift
public func fetchLocation(locationId: String) -> Promise<PKMLocation>
Parameters
locationId
Location ID
Return Value
A promise with PKMLocation
-
Fetch Location Area list
Declaration
Swift
public func fetchLocationAreas() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Location Area Information
Declaration
Swift
public func fetchLocationArea(locationAreaId: String) -> Promise<PKMLocationArea>
Parameters
locationAreaId
Location Area ID
Return Value
A promise with PKMLocationArea
-
Fetch Pal Park Areas list
Declaration
Swift
public func fetchPalParkAreas() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pal Park Area Information
Declaration
Swift
public func fetchPalParkArea(palParkAreaId: String) -> Promise<PKMPalParkArea>
Parameters
palParkAreaId
Pal Park Area ID
Return Value
A promise with PKMPalParkArea
-
Fetch Regions list
Declaration
Swift
public func fetchRegions() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Region Information
Declaration
Swift
public func fetchRegion(regionId: String) -> Promise<PKMRegion>
Parameters
regionId
Region ID
Return Value
A promise with PKMRegion
-
Fetch Abilities list
Declaration
Swift
public func fetchAbilities() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Ability Information
Declaration
Swift
public func fetchAbility(abilityId: String) -> Promise<PKMAbility>
Parameters
abilityId
Ability ID
Return Value
A promise with PKMAbility
-
Fetch Characteristics list
Declaration
Swift
public func fetchCharacteristics() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Characteristic Information
Declaration
Swift
public func fetchCharacteristic(characteristicId: String) -> Promise<PKMCharacteristic>
Parameters
characteristicId
Characteristic ID
Return Value
A promise with PKMCharacteristic
-
Fetch Egg Group list
Declaration
Swift
public func fetchEggGroup() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Egg Group Information
Declaration
Swift
public func fetchEggGroup(eggGroupId: String) -> Promise<PKMEggGroup>
Parameters
eggGroupId
Egg Group ID
Return Value
A promise with PKMEggGroup
-
Fetch Genders list
Declaration
Swift
public func fetchGenders() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Gender Information
Declaration
Swift
public func fetchGender(genderId: String) -> Promise<PKMGender>
Parameters
genderId
Gender ID
Return Value
A promise with PKMGender
-
Fetch Growth Rate list
Declaration
Swift
public func fetchGrowthRates() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Growth Rate Information
Declaration
Swift
public func fetchGrowthRate(growthRateId: String) -> Promise<PKMGrowthRate>
Parameters
growthRateId
Growth Rate ID
Return Value
A promise with PKMGrowthRate
-
Fetch Nature list
Declaration
Swift
public func fetchNatures() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Nature Information
Declaration
Swift
public func fetchNature(natureId: String) -> Promise<PKMNature>
Parameters
natureId
Nature ID
Return Value
A promise with PKMNature
-
Fetch Pokeathlon Stat list
Declaration
Swift
public func fetchPokeathlonStats() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokeathlon Stat Information
Declaration
Swift
public func fetchPokeathlonStat(pokeathlonStatId: String) -> Promise<PKMPokeathlonStat>
Parameters
pokeathlonStatId
Pokeathlon Stat ID
Return Value
A promise with PKMPokeathlonStat
-
Fetch Pokemon list
Declaration
Swift
public func fetchPokemons() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokemon Information
Declaration
Swift
public func fetchPokemon(pokemonId: String) -> Promise<PKMPokemon>
Parameters
pokemonId
Pokemon( ID
Return Value
A promise with PKMPokemon
-
Fetch Pokemon Color list
Declaration
Swift
public func fetchPokemonColors() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokemon Color Information
Declaration
Swift
public func fetchPokemonColor(pokemonColorId: String) -> Promise<PKMPokemonColor>
Parameters
pokemonColorId
Pokemon Color ID
Return Value
A promise with PKMPokemonColor
-
Fetch Pokemon Form list
Declaration
Swift
public func fetchPokemonForms() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokemon Form Information
Declaration
Swift
public func fetchPokemonForm(pokemonFormId: String) -> Promise<PKMPokemonForm>
Parameters
pokemonFormId
Pokemon Form ID
Return Value
A promise with PKMPokemonForm
-
Fetch Pokemon Habitat list
Declaration
Swift
public func fetchPokemonHabitats() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokemon Habitat Information
Declaration
Swift
public func fetchPokemonHabitat(pokemonHabitatId: String) -> Promise<PKMPokemonHabitat>
Parameters
pokemonHabitatId
Pokemon Habitat ID
Return Value
A promise with PKMPokemonHabitat
-
Fetch Pokemon Shape list
Declaration
Swift
public func fetchPokemonShapes() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokemon Shape Information
Declaration
Swift
public func fetchPokemonShape(pokemonShapeId: String) -> Promise<PKMPokemonShape>
Parameters
pokemonShapeId
Pokemon Shape ID
Return Value
A promise with PKMPokemonShape
-
Fetch Pokemon Species list
Declaration
Swift
public func fetchPokemonSpecies() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Pokemon Species Information
Declaration
Swift
public func fetchPokemonSpecies(pokemonSpeciesId: String) -> Promise<PKMPokemonSpecies>
Parameters
pokemonSpeciesId
Pokemon Species ID
Return Value
A promise with PKMPokemonSpecies
-
Fetch Stat list
Declaration
Swift
public func fetchStats() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Stat Information
Declaration
Swift
public func fetchStat(statId: String) -> Promise<PKMStat>
Parameters
statId
Stat ID
Return Value
A promise with PKMStat
-
Fetch Type list
Declaration
Swift
public func fetchType() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Type Information
Declaration
Swift
public func fetchType(typeId: String) -> Promise<PKMType>
Parameters
typeId
Type ID
Return Value
A promise with PKMType
-
Fetch Languages list
Declaration
Swift
public func fetchLanguages() -> Promise<PKMPagedObject>
Return Value
A promise with PKMPagedObject
-
Fetch Language Information
Declaration
Swift
public func fetchLanguage(languageId: String) -> Promise<PKMLanguage>
Parameters
languageId
Language ID
Return Value
A promise with PKMLanguage