NativeScript Examples
Working code for each barKoder feature on NativeScript. Start with the general example, then add what your app needs.
Start here General example A complete scanner screen: the license key, the barcode types to read, the settings and the result.setBarkoderSettingssetBarcodeTypeEnabled Open the example →
import { Observable } from '@nativescript/core'
import { BarkoderConstants } from 'barkoder-nativescript/barkoder-nativescript.common'
export class HelloWorldModel extends Observable implements BarkoderConstants.BarkoderResultCallback {
private barkoderView: any
constructor(args) {
super()
this.barkoderView = args.object.page.getViewById('barkoderView')
this.barkoderView.setLicenseKey("LICENSE_KEY")
this.setBarcodeTypeEnabled()
this.setBarkoderSettings()
}