Contents

presentContent(_:from:)

Presents a sheet that teaches merchants how to use the specified feature.

Declaration

final func presentContent(_ content: ProximityReaderDiscovery.Content, from viewController: UIViewController) async throws

Parameters

  • content:

    The topic to teach. You can get a list of available topics from the Contentlist property or fetch a topic for a specific subject using the Content(for:) method.

  • viewController:

    The view controller to use when presenting the sheet. Specify a currently visible view controller in your app.

Discussion

Call this method when you want to display information about how to use ProximityReader features on a merchant’s iPhone. For example, you might use this method to display instructions for how the merchant uses Tap to Pay on iPhone. This method presents the requested information in a sheet on top of your app’s UI, which remains on-screen until the person dismiss it or an error occurs.