
Later on we’ll need something more specific than just any random String, but for now, String is sufficient to start our implementation. In this case we’d like to handle base 64 encoded Strings, so that means String is probably a reasonable choice for our Model type. What type of Data should we produce for that Model?.Before we do so, we need to make two decisions: The first step is to implement the ModelLoader interface. Note that if you actually want to do this in your application, it would be better to retrieve the Base64 encoded Strings in your ModelLoader so that you can avoid the CPU and memory overhead of loading them into memory if Glide has previously cached your image.įor our purposes though, loading a Base64 image should provide a simple example, even if it might be a bit inefficient in the real world. So that we have something to follow along with, let’s implement a custom ModelLoader that takes Base64 encoded image Strings and decodes them with Glide. Register your new ModelLoader with Glide using an AppGlideModule (or LibraryGlideModule if you’re working on a library rather than an application).Implement a DataFetcher that can be returned by your ModelLoader.To add support for a new type of model, you’ll need to follow three steps: You may even want to integrate a new way of fetching images or a new networking library beyond those available in Glide’s integration libraries.įortunately Glide is extensible.

You may also run in to cases where you want to customize or tweak Glide’s default behavior. Registering our ModelLoader with Glide.Īlthough Glide provides out of the box support for most common types of models (URLs, Uris, file paths etc), you may occasionally run into a type that Glide doesn’t support.

A small chance of getting caught but a 100% ban when caught. So Blizzard advises me to use it but at the same time also tells me that I will be banned when I use it.

However, one of the Blizzard support guys also admitted using it and also recommended it for me to fix some of the bugs that I experience in Diablo II (my frame rate in window mode is so extremely high that it causes small glitches among other things including crashes) as there is no legal way of fixing it and they refuse to patch it. Sadly we can't use it on battle net w/o risking getting banned eventually. Blizzard does not release any patches anymore for this game and there are still some bugs (mainly for super high end machines) and glide wrapper fixes some of those. Even if you only use it to prevent your game from crashing or for altering your resolution or to cap your fps on high end machines.

Yes if you get caught (online) you will be banned according to blizzard support. So for all others in the year 2013 searching for the legality of glide wrapper: Sorry for necro-ing but this thread keeps popping up in Google for me.
