OpenURLService

public class OpenURLService: NSObject, ServiceProtocol

Provides the ability to open a URL on device external to app.

URLs may launch different apps on the device, for example:

  • The URL mailto://someone@example.com?Subject=Hello%20again would open the mail app.

  • The URL tel:1-800-555-1212 would open the phone app, and initiate a phone call.

  • The URL https://www.google.com would open the Safari app.

  • Unique identifier for this service.

    Declaration

    Swift

    @objc public static var serviceIdentifier: String
  • ServiceProtocol performRequest implementation for this service.

    See also

    ServiceProtocol

    Declaration

    Swift

    @objc public static func performRequest(_ request: URLRequest, response: HTTPURLResponse, responseReturn: @escaping responseReturnBlock, dataReturn: @escaping dataReturnBlock, requestComplete: @escaping requestCompleteBlock)