youssef hachicha
11/05/2024, 1:22 PMaddTargetWithHandler requires a return type of Long, specifically MPRemoteCommandHandlerStatus. I’ve tried returning different values, and it seems to work regardless, but I’m unsure about what should actually be returned there. Can anyone explain?
val commandCenter = MPRemoteCommandCenter.sharedCommandCenter()
with(commandCenter) {
pauseCommand.addTargetWithHandler { event ->
scope.launch {
pause()
}
1
}
}ribesg
11/06/2024, 1:45 PMremove method