Git Product home page Git Product logo

Comments (5)

jcular avatar jcular commented on June 1, 2024

Hi @mladilav,

v1.5.0 uses old API and unfortunately changing that text requires writing some native code on iOS.
Open CDVBlinkIdScanner.m add the following below #import<MicroBlink/MicroBlink.h>:

@interface CustomIDCardOverlayViewController : PPIDCardOverlayViewController

@end

@implementation CustomIDCardOverlayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.idCardSubview.tooltipLabel.text = @"your text";
}

@end

In the same file replace:

UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self coordinator:coordinator error:nil];

with:

CustomIDCardOverlayViewController *idCardOverlay = [[CustomIDCardOverlayViewController alloc] init];
UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self overlayViewController:idCardOverlay coordinator:coordinator error:nil];

Kind regards,
Jure

from blinkid-cordova.

mladilav avatar mladilav commented on June 1, 2024

Hi @mladilav,

v1.5.0 uses old API and unfortunately changing that text requires writing some native code on iOS.
Open CDVBlinkIdScanner.m add the following below #import<MicroBlink/MicroBlink.h>:

@interface CustomIDCardOverlayViewController : PPIDCardOverlayViewController

@end

@implementation CustomIDCardOverlayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.idCardSubview.tooltipLabel.text = @"your text";
}

@end

In the same file replace:

UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self coordinator:coordinator error:nil];

with:

CustomIDCardOverlayViewController *idCardOverlay = [[CustomIDCardOverlayViewController alloc] init];
UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self overlayViewController:idCardOverlay coordinator:coordinator error:nil];

Kind regards,
Jure

Hello!
Thanks for your answer! But I have one more question:
Is it possible to get the text @"your text"; from en.strings?

from blinkid-cordova.

jcular avatar jcular commented on June 1, 2024

Instead of @"your text" you can set it to MB_LOCALIZED(@"position_tooltip"); and add "position_tooltip" key and it's value inside en.strings file.

Kind regards,
Jure

from blinkid-cordova.

mladilav avatar mladilav commented on June 1, 2024

Hello @jcular !

I have a question. How I can set the language in my app for new microblink (4.7.0) ?

from blinkid-cordova.

Cerovec avatar Cerovec commented on June 1, 2024

Hi @mladilav,

sorry for the delay with the answer. We did, however, check BlinkID v5.3 (our latest release), and the feature to set the language. It seems like for some reason this isn't working in the latest release, so we're classifying this issue as a bug and we will check this before the next release.

Thanks,
Jurica.

from blinkid-cordova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.