From 3ebb7b4c90acaa0f41b170e685e43b53c48d8ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Para=C4=91ina?= Date: Thu, 21 Sep 2023 16:33:28 +0200 Subject: [PATCH] Add additional UI customization settings for BlinkID overlay --- .../MBBlinkIdOverlaySettingsSerialization.m | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m index 27c93f8..db9beed 100644 --- a/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m +++ b/BlinkID/src/ios/sources/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m @@ -171,6 +171,27 @@ -(MBOverlayViewController *) createOverlayViewController:(NSDictionary *)jsonOve sett.errorMandatoryFieldMissing = (NSString *)errorMandatoryFieldMissing; } } + + { + id showOnboardingInfo = [jsonOverlaySettings valueForKey:@"showOnboardingInfo"]; + if (showOnboardingInfo != nil) { + sett.showOnboardingInfo = [showOnboardingInfo boolValue]; + } + } + + { + id showIntroductionDialog = [jsonOverlaySettings valueForKey:@"showIntroductionDialog"]; + if (showIntroductionDialog != nil) { + sett.showIntroductionDialog = [showIntroductionDialog boolValue]; + } + } + + { + id onboardingButtonTooltipDelay = [jsonOverlaySettings valueForKey:@"onboardingButtonTooltipDelay"]; + if (onboardingButtonTooltipDelay != nil) { + sett.onboardingButtonTooltipDelay = [onboardingButtonTooltipDelay doubleValue] / 10000.0; + } + } return [[MBBlinkIdOverlayViewController alloc] initWithSettings:sett recognizerCollection:recognizerCollection delegate:self]; }