Enum Class的使用
com.walker.push.NotificationChannel
使用NotificationChannel的程序包
-
com.walker.push中NotificationChannel的使用
修饰符和类型方法说明Pushable.getNotificationChannel()返回推送者支持的通道,只能一个。static final NotificationChannelstatic NotificationChannelReturns the enum constant of this class with the specified name.static NotificationChannel[]NotificationChannel.values()Returns an array containing the constants of this enum class, in the order they are declared.返回变量类型为NotificationChannel的类型的com.walker.push中的方法参数类型为NotificationChannel的com.walker.push中的方法修饰符和类型方法说明AbstractPushManager.getPushList(NotificationChannel channel) PushManager.getPushList(NotificationChannel channel) 根据通道类型,返回该类型下推送对象(集合),可能会存在多个。voidPushStatusListener.onException(Notification notification, String error, NotificationChannel channel) 当调用异常时voidPushStatusListener.onSuccess(Notification notification, Object option, NotificationChannel channel) 当调用成功时protected abstract voidAbstractPushManager.persistent(Notification notification, List<String> successReceiverList, NotificationChannel channel) 持久化保存推送数据(到数据库)protected abstract voidAbstractPushManager.persistentFailed(Notification notification, List<String> failedList, NotificationChannel channel) 持久化推送失败的记录类型变量类型为NotificationChannel的com.walker.push中的方法参数 -
com.walker.push.support中NotificationChannel的使用