I am developing a plugin for audio playback and the ability to control it from the lock screen in NativeScript.
const commandCenter = MPRemoteCommandCenter.sharedCommandCenter(); commandCenter.pauseCommand.addTargetAction('', '');
The addTarget Action method takes two parameters 'target (any)' and 'action (string)'. I can't understand what needs to be passed.
2.1m questions
2.1m answers
60 comments
57.0k users