How to detected user click call or dismiss?

I have the code:

if let url = URL(string:"tel://\(String(describing: Util.checkForNullString(contactNo)))"), UIApplication.shared.canOpenURL(url){
    if #available(iOS 10, *) {
        UIApplication.shared.open(url)
    } else {
        UIApplication.shared.openURL(url)
    }
}

how I can detected if user calling or dismiss?

How to detected user click call or dismiss?
 
 
Q