类 EaseCallKitNotifier


  • public class EaseCallKitNotifier
    extends java.lang.Object
    • 构造器概要

      构造器 
      构造器 说明
      EaseCallKitNotifier​(android.content.Context context)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected void handleMessage​(io.agora.chat.ChatMessage message)
      send it to notification bar This can be override by subclass to provide customer implementation
      void notify​(android.content.Intent fullScreenIntent, java.lang.String title, java.lang.String content)
      Applicable to android10 and later, the limitation of starting Activity from the background
      void notify​(io.agora.chat.ChatMessage message)
      handle the new message this function can be override
      void notify​(java.lang.String content)  
      void notify​(java.util.List<io.agora.chat.ChatMessage> messages)  
      void reset()
      this function can be override
      void vibrateAndPlayTone​(io.agora.chat.ChatMessage message)
      vibrate and play tone
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • NOTIFY_ID

        protected static int NOTIFY_ID
      • CHANNEL_ID

        protected static final java.lang.String CHANNEL_ID
        另请参阅:
        常量字段值
      • VIBRATION_PATTERN

        protected static final long[] VIBRATION_PATTERN
      • notificationManager

        protected android.app.NotificationManager notificationManager
      • fromUsers

        protected java.util.HashSet<java.lang.String> fromUsers
      • notificationNum

        protected int notificationNum
      • appContext

        protected android.content.Context appContext
      • packageName

        protected java.lang.String packageName
      • msg

        protected java.lang.String msg
      • lastNotifyTime

        protected long lastNotifyTime
      • ringtone

        protected android.media.Ringtone ringtone
      • audioManager

        protected android.media.AudioManager audioManager
      • vibrator

        protected android.os.Vibrator vibrator
    • 构造器详细资料

      • EaseCallKitNotifier

        public EaseCallKitNotifier​(android.content.Context context)
    • 方法详细资料

      • reset

        public void reset()
        this function can be override
      • notify

        public void notify​(io.agora.chat.ChatMessage message)
        handle the new message this function can be override
        参数:
        message -
      • notify

        public void notify​(java.util.List<io.agora.chat.ChatMessage> messages)
      • notify

        public void notify​(java.lang.String content)
      • notify

        public void notify​(android.content.Intent fullScreenIntent,
                           java.lang.String title,
                           java.lang.String content)
        Applicable to android10 and later, the limitation of starting Activity from the background
        参数:
        fullScreenIntent -
        title -
        content -
      • handleMessage

        protected void handleMessage​(io.agora.chat.ChatMessage message)
        send it to notification bar This can be override by subclass to provide customer implementation
        参数:
        message -
      • vibrateAndPlayTone

        public void vibrateAndPlayTone​(io.agora.chat.ChatMessage message)
        vibrate and play tone