NSURL

Undocumented

  • Creates an NSURL for opening in Google Chrome app. The caller should check whether the current UIApplication can open the returned value before attempting to.

    Note

    As of iOS 9, googlechrome and googlechromes should be added to the LSApplicationQueriesSchemes key in info.plist in order to open the retuned Google Chrome URL.

    Declaration

    Swift

    public func googleChromeURL() -> NSURL?

    Return Value

    An NSURL suitable for opening an NSURL in Google Chrome if the scheme of self is http or https. nil otherwise.