Commit 7060a3f2 authored by wanglei's avatar wanglei

...workManager

parent 21e336db
......@@ -118,5 +118,6 @@ dependencies {
implementation(libs.applovin.pangle) //pangle
implementation(libs.applovin.vungle) //vungle
//work
implementation("androidx.work:work-runtime-ktx:2.7.1") // 请使用最新版本
}
\ No newline at end of file
package com.base.appzxhy.bean
import android.content.Context
import android.content.Intent
import android.widget.RemoteViews
class NotificationSendBean(
val context: Context,
val actionId: String = "",
val where: String = "",
val canSend: () -> Boolean = { true },//是否可以发送
var sendSuccess: (() -> Unit)? = null,//发送成功回调
var valueMap: HashMap<String, Any> = hashMapOf()//发送通知可能携带的参数
) {
var notificationId = 0L
var actionId: String = ""
var bigRemoteViews: RemoteViews? = null
var smallRemoteViews: RemoteViews? = null
var intent: Intent? = null
var notificationId: Int = 1999
companion object {
......@@ -23,5 +28,9 @@ class NotificationSendBean(
const val POPUP_WHERE_PACKAGE = "package"
const val POPUP_WHERE_WORK_MANAGER = "workManager"
const val POPUP_WHERE_FILE_JOB = "FileJob"
const val ACTION_ID_STAY_SCAN = "action_id_scan_1"
const val ACTION_ID_SCAN = "action_id_scan_2"
}
}
\ No newline at end of file
......@@ -5,7 +5,8 @@ import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Build
import com.base.appzxhy.bean.config.PopupConfigBean.Companion.POPUP_WHERE_LOCK
import com.base.appzxhy.bean.NotificationSendBean
import com.base.appzxhy.bean.NotificationSendBean.Companion.POPUP_WHERE_LOCK
import com.base.appzxhy.bean.config.PopupConfigBean.Companion.popupConfigBean
import com.base.appzxhy.helper.EventUtils
import com.base.appzxhy.utils.AppPreferences
......@@ -38,7 +39,7 @@ class ScreenStatusReceiver : BroadcastReceiver() {
companion object {
private val TAG = "com.base.appzxhy.fcm.receiver.ScreenStatusReceiver"
private val TAG = "ScreenStatusReceiver"
var isDeviceInteractive: Boolean = true
var isSecureLockActive: Boolean = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment