motion/project/template/ios-intents-extension/files/app/intent_handler.rb
# Once resolution is completed, perform validation on the intent and provide confirmation (optional).
Once resolution is completed, perform validation on the intent and provide confirmation (optional).
Once resolution is completed perform validation on the intent and provide confirmation ( optional ) .
def confirmSendMessage(intent, completion:completion)
    userActivity = NSUserActivity.alloc.initWithActivityType(NSStringFromClass(INSendMessageIntent))
    response = INSendMessageIntentResponse.alloc.initWithCode(INSendMessageIntentResponseCodeReady, userActivity:userActivity)
    completion.call(response);
  end
def confirmSendMessage ( intent , completion : completion ) userActivity = NSUserActivity . alloc . initWithActivityType ( NSStringFromClass ( INSendMessageIntent ) ) response = INSendMessageIntentResponse . alloc . initWithCode ( INSendMessageIntentResponseCodeReady , userActivity : userActivity ) completion . call ( response ) ; end
Once resolution is completed, perform validation on the intent and provide confirmation (optional).
Once resolution is completed perform validation on the intent and provide confirmation ( optional ) .
# Verify user is authenticated and your app is ready to send a message.
intent
completion