ios - Phone call from Apple Watch with openSystem API? -


as watched wwdc 2015 session video "introducing watchkit watchos 2" (at 13:29), saw possible make phone calls directly on apple watch opensystem api. how can use api in swift?

you can use opensystemurl method, available on shared wkextension object. pass tel: url method initiate phone call.

if let telurl=nsurl(string:"tel:5553478") {     let wkextension=wkextension.sharedextension()     wkextension.opensystemurl(telurl) } 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -