             
             #if os(iOS)
                 var application = AppRegistryBridge.sharedInstance.getPlatformContext().getContext() as UIApplication
-                
                 return application.canOpenURL(NSURL(string: "tel://")!)
             #endif
             #if os(OSX)
-                // TODO: Not implemented.
                 return false
             #endif
             

#if os(OSX)
    import AppKit
    import CoreLocation
#endif

/**

        switch type {
            
        case ICapabilitiesNet.GSM:
            #if os(iOS)
                return true
            #endif
            #if os(OSX)
                return false
            #endif
        case ICapabilitiesNet.GPRS:
            #if os(iOS)
                return true
            #endif
            #if os(OSX)
                return false
            #endif
        case ICapabilitiesNet.HSDPA:
            #if os(iOS)
                return true
            #endif
            #if os(OSX)
                return false
            #endif
        case ICapabilitiesNet.LTE:
            #if os(iOS)
                return true
            #endif
            #if os(OSX)
                return false
            #endif
        case ICapabilitiesNet.WIFI:
            #if os(iOS)
                return true
            #endif
            #if os(OSX)
                return true
            #endif
        case ICapabilitiesNet.Ethernet:
            #if os(iOS)
                return false
            #endif
            #if os(OSX)
                return true
            #endif
        case ICapabilitiesNet.Unavailable:
            #if os(iOS)
                return false
            #endif
            #if os(OSX)
                return false
            #endif
        case ICapabilitiesNet.Unknown:
            return false
        }
