useTagId

fun useTagId(tagId: Int): CustomViewTarget<T, Z>

Override the android resource id to store temporary state allowing loads to be automatically cancelled and resources re-used in scrolling lists.

Unlike ViewTarget, it is not necessary to set a custom tag id if your app uses setTag. It is only necessary if loading several Glide resources into the same view, for example one foreground and one background view.

Deprecated

Using this method prevents clearing the target from working properly. Glide uses its own internal tag id so this method should not be necessary. This method is currently a no-op.

Parameters

tagId

The android resource id to use.