build

fun build(imagePath: String, sizeKey: String): String

Building the URL has three parts: The base URL will look like: http://image.tmdb.org/t/p/. Then you will need a ‘size’, which will be one of the following: "w92", "w154", "w185", "w342", "w500", "w780", or "original". For most phones we recommend using “w185”. And finally the poster path returned by the query, in this case “/nBNZadXqJSdt05SHLqgT0HuC5Gm.jpg”

Example poster: https://image.tmdb.org/t/p/w185/nBNZadXqJSdt05SHLqgT0HuC5Gm.jpg Example logo: https://image.tmdb.org/t/p/h60/ifhbNuuVnlwYy5oXA5VIb2YR8AZ.png

Note: Also build for person profile path. Sizes are "w45", "w185", "h632", "original"


fun build(imagePath: String, type: TmdbImageType, width: Int, height: Int): String
fun build(image: TmdbImage, sizeKey: String): String
fun build(image: TmdbImage, width: Int, height: Int): String