public class

ImageQuery

extends ContentQuery
java.lang.Object
   ↳ com.neomades.content.Query
     ↳ com.neomades.content.ContentQuery
       ↳ com.neomades.content.image.ImageQuery

Class Overview

Query that requests an image from URL.

An instance of ImageQuery can be used only once.

The ImageQuery uses a particular RetryPolicy with the following characteristics:

  • Default timeout: 30 seconds
  • Maximum number of retry: 2 times
  • Backoff multiplier: 2
One can still customize the RetryPolicy with setRetryPolicy(com.neomades.content.retry.RetryPolicy).

Summary

Public Constructors
ImageQuery(int method, String url, int maxWidth, int maxHeight)
Creates a new Image query to provide an Image to ImageUrlLabel
[Expand]
Inherited Methods
From class com.neomades.content.ContentQuery
From class com.neomades.content.Query
From class java.lang.Object

Public Constructors

public ImageQuery (int method, String url, int maxWidth, int maxHeight)

Creates a new Image query to provide an Image to ImageUrlLabel

Parameters
method HTTP Method
url the url of the image
maxWidth the max-width in pixels wanted by the ImageUrlLabel
maxHeight the max-height in pixels wanted by the ImageUrlLabel
See Also