接口 EaseNotifier.EaseNotificationInfoProvider

  • 封闭类:
    EaseNotifier

    public static interface EaseNotifier.EaseNotificationInfoProvider
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      java.lang.String getDisplayedText​(io.agora.chat.ChatMessage message)
      set the notification content, such as "you received a new image from xxx"
      java.lang.String getLatestText​(io.agora.chat.ChatMessage message, int fromUsersNum, int messageNum)
      set the notification content: such as "you received 5 message from 2 contacts"
      android.content.Intent getLaunchIntent​(io.agora.chat.ChatMessage message)
      set the intent when notification is pressed
      int getSmallIcon​(io.agora.chat.ChatMessage message)
      set the small icon
      java.lang.String getTitle​(io.agora.chat.ChatMessage message)
      设置notification标题
    • 方法详细资料

      • getDisplayedText

        java.lang.String getDisplayedText​(io.agora.chat.ChatMessage message)
        set the notification content, such as "you received a new image from xxx"
        参数:
        message -
        返回:
        null-will use the default text
      • getLatestText

        java.lang.String getLatestText​(io.agora.chat.ChatMessage message,
                                       int fromUsersNum,
                                       int messageNum)
        set the notification content: such as "you received 5 message from 2 contacts"
        参数:
        message -
        fromUsersNum - - number of message sender
        messageNum - -number of messages
        返回:
        null-will use the default text
      • getTitle

        java.lang.String getTitle​(io.agora.chat.ChatMessage message)
        设置notification标题
        参数:
        message -
        返回:
        null- will use the default text
      • getSmallIcon

        int getSmallIcon​(io.agora.chat.ChatMessage message)
        set the small icon
        参数:
        message -
        返回:
        0- will use the default icon
      • getLaunchIntent

        android.content.Intent getLaunchIntent​(io.agora.chat.ChatMessage message)
        set the intent when notification is pressed
        参数:
        message -
        返回:
        null- will use the default icon