Package 

Class Avatar


  • 
    public final class Avatar
    
                        

    A data transfer model for transferring image data to AvatarFetcher. This model will be fetched by AvatarFetcher when we request image loading by using this type to Coil.

    The default supported data types are:

    • Method Detail

      • setTagIfAbsent

         final <T extends Any> Unit setTagIfAbsent(String key, T newValue)

        Sets a tag associated with this avatar and a key. If the given newValue was already set for the given key, this calls do nothing, the given newValue would be ignored.

        Parameters:
        key - A new key to set a tag associated with this avatar.
        newValue - A new value to be set on the bag.
      • getTag

         final <T extends Any> T getTag(String key)

        Returns the tag associated with this avatar using the given key.

        Parameters:
        key - A new key to get a tag associated with this avatar.