motion/project/template/ios-intents-extension/files/app/intent_handler.rb
# Handle the completed intent (required).
Handle the completed intent (required).
Handle the completed intent ( required ) .
def handleSendMessage(intent, completion:completion)
    userActivity = NSUserActivity.alloc.initWithActivityType(NSStringFromClass(INSendMessageIntent))
    response = INSendMessageIntentResponse.alloc.initWithCode(INSendMessageIntentResponseCodeSuccess, userActivity:userActivity)
    completion.call(response);
  end
def handleSendMessage ( intent , completion : completion ) userActivity = NSUserActivity . alloc . initWithActivityType ( NSStringFromClass ( INSendMessageIntent ) ) response = INSendMessageIntentResponse . alloc . initWithCode ( INSendMessageIntentResponseCodeSuccess , userActivity : userActivity ) completion . call ( response ) ; end
Handle the completed intent (required).
Handle the completed intent ( required ) .
# Implement your application logic to send a message here.
intent
completion