preNotificationMessageArrived

public abstract boolean preNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage notificationMessage)

通知显示之前的回调,用户可拦截此事件进行通知自定义显示。 融云默认推送、华为数据透传方式推送、 FCM 数据方式推送会回调此方法。

Return

是否拦截处理。true 代表此事件被拦截,sdk 不再处理;false, 按 sdk 默认逻辑处理

Parameters

context

上下文

pushType

推送类型

notificationMessage

推送消息