Overview
TheMetaMap 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
MetaMap instance.
Methods
showMetaMapFlow
Your MetaMap client ID. This is required to authenticate your application with the MetaMap service.
The ID of the specific verification flow to use. If not provided, the default flow will be used.
The ID of the configuration to use for the verification flow.
The ID of the encryption configuration to use for securing verification data.
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 formatbuttonTextColor: Customize the button text color using hex formatidentityId: For re-verification purposesencryptionConfigurationId: Alternative way to set encryption configurationregularFont: Custom regular font file nameboldFont: Custom bold font file name- Any custom key-value pairs for your integration
Usage Examples
Swift
Objective-C
SwiftUI
Notes
- The
MetaMapclass uses a singleton pattern. Always access it through thesharedproperty. - Make sure to configure the required permissions in your
Info.plistfile before launching the verification flow. - The verification flow will be presented modally on top of the current view controller.
- Use
MetaMapButtonResult.shared.delegateto receive callbacks about the verification status.
See Also
- MetaMapButton - Pre-built button component for launching verification
- MetaMapButtonResult - Handle verification results and callbacks