Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public final class MiteneGlideModule extends AppGlideModule {
// Daggerでinjectできるように設定済みである前提
@Inject okhttp3.OkHttpClient authOkHttpClient;
public void applyOptions(Context context, GlideBuilder builder) {
// 必要なOptionを書きます
public void registerComponents(@NonNull Context context, @NonNull Glide glide, @NonNull Registry registry) {
registry.append(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(authOkHttpClient));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.