TechnologiesApp Extensions & System Integration

TranslationUIProvider

iOSmacOStvOSwatchOSvisionOS

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.

  • Pr
    TranslationUIProviderExtension
    A protocol you conform to in order to build an extension that contributes custom translation UI to the system Translate feature.
  • Pr
    TranslationUIProviderExtensionScene
    The 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.

  • Pr
    TranslationUIProviderContext
    TranslationUIProviderContext

Structures 2

  • St
    TranslationProviderUIExtensionConfiguration
    Configuration for extensions that conform to the ``TranslationUIProviderExtension`` protocol.
  • St
    TranslationUIProviderSelectedTextScene
    The specific AppExtensionScene that this extension provides.
← App Extensions & System Integration