FetchPhotoResponse

public abstract class FetchPhotoResponse implements Response


Response for FetchPhotoRequest.

Summary

Public constructors

Public methods

abstract Bitmap

Returns the requested image data.

static FetchPhotoResponse

Returns a FetchPhotoResponse.

Public constructors

FetchPhotoResponse

public FetchPhotoResponse()

Public methods

getBitmap

public abstract Bitmap getBitmap()

Returns the requested image data.

Returns
Bitmap

The image data or null if the request was not successful.

newInstance

public static FetchPhotoResponse newInstance(Bitmap bitmap)

Returns a FetchPhotoResponse.

Parameters
Bitmap bitmap

The android.graphics.BitmapFactory returned by the response.