Class PlayerAvatarUriGenerator

Returns a URL linking to an avatar. The avatar image must exist as a file at the provided avatarBaseUrl location and consist of a number (no leading zeros) ending with .png. For example, if there are 500 avatar images, the first one will be 0.png and the last one will be 499.png.

Hierarchy

  • PlayerAvatarUriGenerator

Index

Constructors

constructor

Methods

getFromHash

  • getFromHash(hash: Buffer): string

getFromId

  • getFromId(id: string | number): string

getRandom

  • getRandom(): string
Brought to you with ❤ by the Alexa Games team at Amazon. © 2019, Amazon.com, Inc. or its affiliates. All Rights Reserved.