Giter VIP home page Giter VIP logo

Comments (5)

neumartin avatar neumartin commented on August 20, 2024 2

Solved!, try to change:

const CameraPlus = require('@nstudio/nativescript-camera-plus');
by
const CameraPlus = require('@nstudio/nativescript-camera-plus').CameraPlus;

from nativescript-camera-plus.

bradmartin avatar bradmartin commented on August 20, 2024

Your code looks okay so not really sure why the event doesn't fire for you 😕 - as for the saveToGallery false and still saving. Can you provide OS, Android/iOS version and so on to try and reproduce it? Thanks

from nativescript-camera-plus.

gbatori avatar gbatori commented on August 20, 2024

Hi!

You should register the photoCapturedEvent like this:

`public camLoaded(e: any): void {
this.cam = this.camera.nativeElement;
this.cam.saveToGallery = false;
this.cam.on(CameraPlus.photoCapturedEvent, (event) => {
this.photoCapturedEvent(event);
});

public photoCapturedEvent(e: any): void {
if (isAndroid) {
console.log(e.data.android); // the path of the captured file, eg. "/storage/emulated/0/Android/data/COM.YOURAPP.NAME/files/IMG_1535045496885.jpg"
} else {
console.log(e.data.ios);
}
}`

from nativescript-camera-plus.

konradkluzniak avatar konradkluzniak commented on August 20, 2024

Hi,
@Scoottykun, were you able to fix this ?
If yes, can you show me the code ?
Thanks.

from nativescript-camera-plus.

neumartin avatar neumartin commented on August 20, 2024

Same issue heare, any update??

from nativescript-camera-plus.

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.