Contents

openInMaps(launchOptions:from:completionHandler:)

Opens the Maps app from a particular scene using the specified options.

Declaration

func openInMaps(launchOptions: [String : Any]? = nil, from scene: UIScene?, completionHandler completion: (@Sendable (Bool) -> Void)? = nil)
func openInMaps(launchOptions: [String : Any]? = nil, from scene: UIScene?) async -> Bool

Parameters

  • launchOptions:

    A dictionary of launch options to pass to the Maps app.

  • scene:

    The scene where the user interaction takes place.

  • completion:

    A completion block the system calls that indicates whether the request was successful.

See Also

Launching the Maps app