Skip to content

Can't find the variable "data" of the readme #24

@kriefsacha

Description

@kriefsacha

Hi, the detection event problem seems to be fixed with the alpha 4.

I just have an issue, the readme says:

onDetection(event: DetectionEvent){
    if(event.type === DetectionType.Barcode){
        const barcode: BarcodeResult = data;
    }

But where data comes from ?

If i try to do = event.data it tells me that i cant because event.data is type [key:string].

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions