Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
331 views
in Technique[技术] by (71.8m points)

typescript - How to access to iOS Audio controls (background mode/lock screen) in Native Script?

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.

enter image description here

question from:https://stackoverflow.com/questions/65937810/how-to-access-to-ios-audio-controls-background-mode-lock-screen-in-native-scri

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...