Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@GlideModule
public final class MiteneGlideModule extends AppGlideModule {
// Daggerでinjectできるように設定済みである前提
@Inject okhttp3.OkHttpClient authOkHttpClient;
@Override
public void applyOptions(Context context, GlideBuilder builder) {
// 必要なOptionを書きます
}
@Override
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.