Skip to main content

Overview

The MetaMap class is the main entry point for integrating MetaMap verification into your iOS application. It provides a singleton instance and methods to launch the verification flow with customizable parameters.

Properties

shared

The shared singleton instance of MetaMap. Use this property to access the MetaMap functionality throughout your application. Returns: The shared MetaMap instance.

Methods

showMetaMapFlow

Launches the MetaMap verification flow with the specified parameters.
String
required
Your MetaMap client ID. This is required to authenticate your application with the MetaMap service.
String
default:"null"
The ID of the specific verification flow to use. If not provided, the default flow will be used.
String
default:"null"
The ID of the configuration to use for the verification flow.
String
default:"null"
The ID of the encryption configuration to use for securing verification data.
Dictionary<String, Any>
default:"null"
Additional metadata to pass to the verification flow. This can include:
  • fixedLanguage: Set the SDK language (“en”, “es”, “fr”, “pt”, “ru”, “tr”, “de”, “it”, “pl”, “th”)
  • buttonColor: Customize the button color using hex format
  • buttonTextColor: Customize the button text color using hex format
  • identityId: For re-verification purposes
  • encryptionConfigurationId: Alternative way to set encryption configuration
  • regularFont: Custom regular font file name
  • boldFont: Custom bold font file name
  • Any custom key-value pairs for your integration

Usage Examples

Swift

Objective-C

SwiftUI

Notes

  • The MetaMap class uses a singleton pattern. Always access it through the shared property.
  • Make sure to configure the required permissions in your Info.plist file before launching the verification flow.
  • The verification flow will be presented modally on top of the current view controller.
  • Use MetaMapButtonResult.shared.delegate to receive callbacks about the verification status.

See Also