# NotifyBackgroundMusic

# Call parameter

attribute Introductions
notify Listen for background audio changes, true For listening, false To cancel the listening

# Return parameters

attribute Introductions
state START:1 RESUME:2 PAUSE:3 STOP:4 COMPLETE:5 ERROR:6

# sample code

val request = WMPFNotifyBackgroundMusicRequest()
request.baseRequest = WMPFBaseRequestHelper.checked()
初始值 = true
val result = WMPFIPCInvoker.invokeAsync<IPCInvokerTask_NotifyBackgroundMusic,
        WMPFNotifyBackgroundMusicRequest, WMPFNotifyBackgroundMusicResponse>(
    request,
    IPCInvokerTask_NotifyBackgroundMusic::class.java
) { response ->
    /**
     * val START = 1
     * val RESUME = 2
     * val PAUSE = 3
     * val STOP = 4
     * val COMPLETE = 5
     * val ERROR = 6
     **/
    it.onNext(response)
}

if (!result) {
    it.onError(Exception("invoke notifyBackgroundMusic fail"))
}