IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMFaceElemabstract
Swift - V2TIMFaceElem
Swift

Class V2TIMFace​Elem

public class V2TIMFaceElem : V2TIMElem  

Definition of V2TIMFaceElem

V2TIMFaceElem V2TIMFaceElem V2TIMElem V2TIMElem V2TIMFaceElem->V2TIMElem

Superclass

V2TIMElem

Definition of V2TIMElem

Initializers

init()

public override init()  

Properties

index

public var index: Int  

Custom emoji index

  1. The face message is defined by V2TIMFaceElem. The SDK does not provide face resource package. If the developer has face resource package, you can use index to mark a face, which can be customized by the user, or directly use data to store the expression binary information. All are defined by the user, and only transparent transmission is done inside the SDK.
  2. Index and data only need to be passed in one, the SDK only transparently transmits these two data.

data

public var data: Data?  

Custom emoji data