Contents

getHomeScreenWebAppInfo(completionHandler:)

Provides information about a web app to the system.

Declaration

optional func getHomeScreenWebAppInfo(completionHandler: @escaping  @Sendable (SFAddToHomeScreenInfo?) -> Void)
optional func homeScreenWebAppInfo() async -> SFAddToHomeScreenInfo?

Parameters

  • completionHandler:

    A closure that you call to supply the web app’s information to the system.

Overview

Add information about the web app to a SFAddToHomeScreenInfo object that you create, and pass it to the completion handler.

The system only calls this method in browser apps that include an alternative browser engine. If you implement this method, then the system doesn’t call your implementation of getWebAppManifest(completionHandler:).

See Also

Providing information about a web app to the system