TranslationUIProvider supplies the configuration and context for app extensions that contribute custom translation UI to the system Translate feature on iOS. You build an extension by conforming to TranslationUIProviderExtension and presenting its interface through a TranslationUIProviderExtensionScene, which the system hosts when translation is requested. The TranslationUIProviderContext protocol carries the context the system passes in, giving your extension the information it needs to render and respond to a translation request.
Building a Translation UI Extension 2
Conform to these protocols to provide a custom translation interface that the system hosts within the Translate feature.
- PrTranslationUIProviderExtensionA protocol you conform to in order to build an extension that contributes custom translation UI to the system Translate feature.
- PrTranslationUIProviderExtensionSceneThe AppExtensionScene protocol to which this extension's scenes conform.
Translation Request Context 1
Receive the context the system passes to your extension when a translation is requested.
- PrTranslationUIProviderContextTranslationUIProviderContext
Structures 2
- StTranslationProviderUIExtensionConfigurationConfiguration for extensions that conform to the ``TranslationUIProviderExtension`` protocol.
- StTranslationUIProviderSelectedTextSceneThe specific AppExtensionScene that this extension provides.