SetServiceAttribute如何确定参数?How do SetServiceAttribute determine parameters?

hzq200409

Active Member
Licensed User
我在关于服务的教程 中看到android10 +系统中的补充要求的解决方法:
SetServiceAttribute(Tracker, android:foregroundServiceType, "location")
内容中提到了要使用SetServiceAttribute解决问题,但是我不知道它的参数该如何给.

如图,后面的2个参数我无法确定.我搜遍了整个论坛也没有找到相关说明.请问有什么渠道能了解呢?
===================================================

I saw a solution to the additional requirements in the android10 + system in the tutorial on services:
SetServiceAttribute(Tracker, android:foregroundServiceType, "location")
I mentioned using SetServiceAttribute to solve the problem, but I don't know how to give its arguments.
As shown in the figure, I cannot determine the following two parameters.I searched the entire BBS but couldn't find the relevant instructions.What channels are there to get to know?
Excuse my poor English.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…