Overview
TheMetaMapMetadata class provides configuration options for customizing the MetaMap SDK’s behavior and appearance. Metadata is passed as a dictionary to the showMetaMapFlow method and supports various customization options including language, colors, fonts, and identification parameters.
Usage
Metadata is passed as an optional dictionary parameter when initializing the MetaMap flow:Properties
Language Configuration
Sets the SDK language. Supported languages include:
"en"- English (default)"es"- Spanish"fr"- French"pt"- Portuguese"ru"- Russian"tr"- Turkish"de"- German"it"- Italian"pl"- Polish"th"- Thai
Color Customization
Customizes the main button background color using hexadecimal color format.
Customizes the main button text color using hexadecimal color format.
Identity Configuration
Sets an identity ID parameter for re-verification purposes. Use this when you need to re-verify an existing user.
Security Configuration
Sets the encryption configuration ID for encrypting sensitive data during transmission.
Font Customization
Specifies a custom regular font file name. The font file must be included in your project.
The font file must be added to your project and properly configured in your app’s Info.plist under the
UIAppFonts key.Specifies a custom bold font file name. The font file must be included in your project.
If custom fonts are not provided or cannot be found, the SDK will use default system fonts.
Complete Example
Notes
- All metadata parameters are optional
- Custom metadata keys can be added for tracking purposes
- Values can be of any JSON-compatible type (String, Int, Bool, Dictionary, Array)
- Invalid color formats will fallback to default colors
- Missing font files will fallback to system fonts
See Also
- MetaMap - Main SDK class
- MetaMapButton - Pre-built verification button component