Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouzhi
appzxhy
Commits
7060a3f2
Commit
7060a3f2
authored
Dec 30, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...workManager
parent
21e336db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
build.gradle.kts
app/build.gradle.kts
+2
-1
NotificationSendBean.kt
...c/main/java/com/base/appzxhy/bean/NotificationSendBean.kt
+11
-2
ScreenStatusReceiver.kt
...ava/com/base/appzxhy/fcm/receiver/ScreenStatusReceiver.kt
+3
-2
No files found.
app/build.gradle.kts
View file @
7060a3f2
...
...
@@ -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
app/src/main/java/com/base/appzxhy/bean/NotificationSendBean.kt
View file @
7060a3f2
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
app/src/main/java/com/base/appzxhy/fcm/receiver/ScreenStatusReceiver.kt
View file @
7060a3f2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment