FileDocCategorySizeDatePackage
PhotoPagerLoader.javaAPI DocAndroid 5.1 API1700Thu Mar 12 22:22:52 GMT 2015com.android.ex.photo.loaders

PhotoPagerLoader

public class PhotoPagerLoader extends android.support.v4.content.CursorLoader
Loader for a set of photo IDs.

Fields Summary
private final android.net.Uri
mPhotosUri
private final String[]
mProjection
Constructors Summary
public PhotoPagerLoader(android.content.Context context, android.net.Uri photosUri, String[] projection)

        super(context);
        mPhotosUri = photosUri;
        mProjection = projection != null ? projection : PhotoContract.PhotoQuery.PROJECTION;
    
Methods Summary
public android.database.CursorloadInBackground()

        Cursor returnCursor = null;

        final Uri loaderUri = mPhotosUri.buildUpon().appendQueryParameter(
                PhotoContract.ContentTypeParameters.CONTENT_TYPE, "image/").build();
        setUri(loaderUri);
        setProjection(mProjection);
        returnCursor = super.loadInBackground();

        return returnCursor;