setTagId

open fun setTagId(tagId: Int)

Sets the android resource id to use in conjunction with setTag to store temporary state allowing loads to be automatically cancelled and resources re-used in scrolling lists.

If no tag id is set, Glide will use setTag.

Warning: prior to Android 4.0 tags were stored in a static map. Using this method prior to Android 4.0 may cause memory leaks and isn't recommended. If you do use this method on older versions, be sure to call clear on any view you start a load into to ensure that the static state is removed.

Deprecated

Glide uses it's own default tag id, so there's no need to specify your own. This method will be removed in a future version.

Parameters

tagId

The android resource to use.