RxDownload
RxDownload copied to clipboard
SimpleNotificationCreator 能做个点击事件吗?想点击通知栏,安装app
SimpleNotificationCreator 能做个点击事件吗?想点击通知栏,安装app
你可以创建你自己的NotificationCreator, 然后传给下载器就可以了
@ssseasonnn 请问如果继承你的SimpleNotificationCreator ,要怎么同时相应通知栏点击事件? buildNotification方法里创建PendingIntent,再用pendingIntent.getReceiver方法去发广播貌似不行
import android.support.v4.app.NotificationCompat.Builder for support androidx
import android.support.v4.app.NotificationCompat.Builder for support androidx
Version 1.1.0 already support AndroidX
请问java中 不启用通知栏 怎么用 TaskManager taskManager = RxDownloadManagerKt.manager( task, RxDownloadKt.getRANGE_CHECK_HEADER(), RxDownloadKt.DEFAULT_MAX_CONCURRENCY, RxDownloadKt.DEFAULT_RANGE_SIZE, DefaultDispatcher.INSTANCE, SimpleValidator.INSTANCE, SimpleStorage.INSTANCE, RequestImpl.INSTANCE, WatcherImpl.INSTANCE, EmptyNotification.INSTANCE, //通知栏 new RoomRecorder(), //启用数据库 BasicTaskLimitation.Companion.of(3) //同时下载任务数量限制 ); taskManager.getTaskLimitation().start(taskManager);
使用这个参数 EmptyNotification.INSTANCE, //通知栏 就是没有启用通知栏