# Interface Detector

interface Detector {
execute?: CallableFunction;
name: string;
other?: unknown;
create(): Reader;
decode(wgt, reader): void;
destroy(wgt?): void;
disable(wgt, reader): void;
enable(wgt, reader): void;
init(wgt, video, canvas, n): void;
setType?(wgt, reader): void;
}

#####
Index

### Properties

execute?
name
other?

### Methods

create
decode
destroy
disable
enable
init
setType?

## Properties

### `Optional` execute

execute?: CallableFunction

### name

name: string

### `Optional` other

other?: unknown

## Methods

### create

- create(): Reader

- #### Returns Reader

### decode

- decode(wgt, reader): void

- #### Parameters

  - ##### wgt: Barcodescanner

  - ##### reader: Reader

  #### Returns void

### destroy

- destroy(wgt?): void

- #### Parameters

  - ##### `Optional` wgt: Barcodescanner

  #### Returns void

### disable

- disable(wgt, reader): void

- #### Parameters

  - ##### wgt: Barcodescanner

  - ##### reader: Reader

  #### Returns void

### enable

- enable(wgt, reader): void

- #### Parameters

  - ##### wgt: Barcodescanner

  - ##### reader: Reader

  #### Returns void

### init

- init(wgt, video, canvas, n): void

- #### Parameters

  - ##### wgt: Barcodescanner

  - ##### video: HTMLElement

  - ##### canvas: HTMLCanvasElement

  - ##### n: HTMLElement

  #### Returns void

### `Optional` setType

- setType(wgt, reader): void

- #### Parameters

  - ##### wgt: Barcodescanner

  - ##### reader: Reader

  #### Returns void