问题
Whenever I invoked Siri Shortcut say "HomeControl" and if my iPhone is not connected with any bluetooth device then Siri say's "What can I do for you" (Disambiguation Prompt) after this show the list of all parameters and ready to listen.
But if my iPhone is connected with any Bluetooth device then Siri Say's "What can I do for you" (Disambiguation Prompt) and after this announced all the parameters like "Turn Off the fan", "Turn On the fan" .... etc.
What i want to do is :- I want to stop announcing all parameters.
Question is :- How can I stop accounting all the parameters when I invoked Siri over headset and perform actions?
class IntentHandler: INExtension, FwAssistanceIntentHandling{
func handle(intent: FwAssistanceIntent, completion: @escaping (FwAssistanceIntentResponse) -> Void) {
switch intent.everthing {
case .turnOnTheFan:
completion(.success(result: "Turning on the fan"))
case .turnOffTheFan:
completion(.success(result: "Turning off the fan"))
default:
completion(.init(code: .failure, userActivity: .none))
}
}
func resolveEverthing(for intent: FwAssistanceIntent, with completion: @escaping (FAQandActionsResolutionResult) -> Void) {
if intent.everthing == .unknown{
completion(FAQandActionsResolutionResult.needsValue())
}else{
completion(FAQandActionsResolutionResult.success(with: intent.everthing))
}
}
来源:https://stackoverflow.com/questions/57759031/how-to-stop-announcing-of-siri-shortcuts-parameters-over-headsets-ios-13