Class GIFMessage

  • All Implemented Interfaces:

    
    public class GIFMessage
    
                        

    GIF Message Class

    This class represents a GIF message, which is stored and counted in the unread message count.

    The default maximum size for a GIF file is 2 MB, as specified by RC_GIF_MSG_SIZE_LIMIT_EXCEED. The maximum GIF file size can be configured via navigation settings. getGifSizeLimit

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public int width
      public int height
      public long gifDataSize
      public final static Creator<GIFMessage> CREATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      GIFMessage(Array<byte> data)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • GIFMessage

        GIFMessage(Array<byte> data)
    • Method Detail

      • obtain

         static GIFMessage obtain(Uri localUri)

        Creates a GIFMessage object.

        Parameters:
        localUri - The path to the image
      • setUpLoadExp

         void setUpLoadExp(boolean upLoadExp)

        Sets whether the upload has failed.

        Parameters:
        upLoadExp - Indicates whether the upload has failed.
      • getLocalUri

         Uri getLocalUri()

        Retrieves the local image address (file:///).

        Returns:

        The local image address (file:///).

      • setLocalUri

         void setLocalUri(Uri localUri)

        Set the local image URI (file:///).

        Parameters:
        localUri - The local image URI (file:///).
      • getRemoteUri

         Uri getRemoteUri()

        Retrieves the URL of the network image (http://).

        Returns:

        The URL of the network image (http://).

      • setRemoteUri

         void setRemoteUri(Uri remoteUri)

        Sets the URL of the network image (http://).

        Parameters:
        remoteUri - The URL of the network image (http://).