Chat SDK v1.3.5 for React Native
    Preparing search index...

    Class ChatUserInfoManager

    The user information manager for updating and getting user attributes.

    Hierarchy

    • Native
      • ChatUserInfoManager
    Index

    Constructors

    Methods

    • Gets attributes of the current user from the server.

      Returns Promise<ChatUserInfo | undefined>

      The obtained user attributes. See ChatUserInfo.

      A description of the exception. See ChatError.

    • Gets the user attributes of the specified users.

      Parameters

      • userIds: string[]

        The user ID array.

      Returns Promise<Map<string, ChatUserInfo>>

      A map that contains key-value pairs where the key is the user ID and the value is user attributes,see ChatUserInfo.

      A description of the exception. See ChatError.

    • Modifies the user attributes of the current user.

      Parameters

      • params: {
            avatarUrl?: string;
            birth?: string;
            ext?: string;
            gender?: number;
            mail?: string;
            nickName?: string;
            phone?: string;
            sign?: string;
        }

      Returns Promise<void>

      The parameter set.

      • [nickName] The nickname of the user.
      • [avatarUrl] The avatar URL of the user.
      • [mail] The email address of the user.
      • [phone] The phone number of the user.
      • [gender] The gender of the user. The value can only be 0, 1, or 2. Other values are invalid.
        • 0: (Default) Unknown;
        • 1: Male;
        • 2: Female.
      • [sign] The signature of the user.
      • [birth] The birthday of the user.
      • [ext] The custom extension information of the user. You can set it to an empty string or type custom information and encapsulate them as a JSON string.

      A description of the exception. See ChatError.

    • Type Parameters

      • T

      Parameters

      • method: string
      • Optionalargs: {}

      Returns Promise<T>

    • Parameters

      • result: any

      Returns void