
com.azcltd.fluffyimageloader.loader.UriHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluffy-image-loader Show documentation
Show all versions of fluffy-image-loader Show documentation
Library that helps loading and caching images in Android applications
The newest version!
package com.azcltd.fluffyimageloader.loader;
import android.content.ContentResolver;
import android.net.Uri;
class UriHelper {
private String mUriScheme;
public UriHelper(String uri) {
mUriScheme = uri == null ? null: Uri.parse(uri).getScheme();
}
public boolean isLocal() {
return
ContentResolver.SCHEME_FILE.equals(mUriScheme) ||
ContentResolver.SCHEME_CONTENT.equals(mUriScheme) ||
ContentResolver.SCHEME_ANDROID_RESOURCE.equals(mUriScheme);
}
public boolean isRemote() {
return
"http".equals(mUriScheme) ||
"https".equals(mUriScheme) ||
"ftp".equals(mUriScheme);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy