程序包 com.walker.push
接口 PushStatusListener
public interface PushStatusListener
推送状态监听器定义,让调用方可以在接收到状态时处理业务。
该对象目前使用在异步调用中,如:短信推送者等。
- 作者:
- 时克英
-
方法概要
修饰符和类型方法说明voidonException(Notification notification, String error, NotificationChannel channel) 当调用异常时voidonSuccess(Notification notification, Object option, NotificationChannel channel) 当调用成功时
-
方法详细资料
-
onSuccess
当调用成功时- 参数:
notification-option-
-
onException
当调用异常时- 参数:
notification-error-
-