ios - 此处 map iOS SDK 中的静音语音方向

标签 ios swift3 here-api

我想在我的 iOS 应用程序中打开和关闭语音指示。 HERE 映射指令 (https://developer.here.com/mobile-sdks/documentation/ios-hybrid-plus/topics_api_nlp_hybrid_plus/protocolnmaaudiomanagerdelegate-p.html) 仍然在 Objective-C 中。在那种语言中如何做到这一点非常清楚,但我正在寻找 Swift 3 的等价物。那本手册说:

  • @optional (BOOL) audioManager:( NMAAudioManager *) audioManager shouldPlayOutput:( NMAAudioOutput *) output

Called when the audio manager has output to play.

If the delegate returns YES, or the delegate does not implement this method, the output is played immediately. If the delegate returns NO, the delegate takes over responsiblity for handling the output.



我猜测与此类似,但我无法正确理解:
func audioManagerShouldPlayOutput(_ audioManager: NMAAudioManager!, shouldPlayOutput:false) {
    }

最佳答案

这是使用 XCode "Generated Interface" assistant editor 创建的签名,希望对您有所帮助!看起来你只是有点离开了。

optional public func audioManager(_ audioManager: NMAAudioManager!, shouldPlay output: NMAAudioOutput!) -> Bool

关于ios - 此处 map iOS SDK 中的静音语音方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41815015/

相关文章:

ios - setStatusBarHidden 已弃用,但唯一有效的方法

ios - UITableViewCell 圆形 imageView

ios - iOS 16 中堆栈 View 中按钮的奇怪动画

javascript - 在 HERE map 中将鼠标悬停在标记上时显示内容 Div

ios - 我是否必须在 ARC 下调用 dispatch_release?

swift3 - 快速获得两次之间的时差3

swift3 - Swift 4 使用带有多个参数的选择器

ios - 解码动态接收的输出,因为 JWT 在 Swift 3 中不工作。 "The Token is not yet valid (not before claim)"

android - HERE Android SDK NavigateManager 在没有 map 的情况下模拟不提供操作

ios - 这里是 iOS SDK。 map 未加载