motion/sms/sms.rb in bubble-wrap-1.7.1 vs motion/sms/sms.rb in bubble-wrap-1.8.0
- old
+ new
@@ -35,9 +35,13 @@
message_controller.body = options[:message]
message_controller.recipients = Array(options[:to])
message_controller
end
+ def can_send_sms?
+ !!MFMessageComposeViewController.canSendText
+ end
+
# Event when the MFMessageComposeViewController is closed
# -------------------------------------------------------------
# the callback is fired if it was present in the constructor
def messageComposeViewController(controller, didFinishWithResult: result)