Options
All
  • Public
  • Public/Protected
  • All
Menu

NOTE: This is public SDK API, rename of this functions will produce backward incompatible API!

Index

Variables

Const SDK

SDK: IMicroblink = new Microblink()

Const ScanExchangerCodes

ScanExchangerCodes: ScanExchangerCodes = scanExchangerCodes

Get all Scan exchanger status codes

Const StatusCodes

StatusCodes: StatusCodes = statusCodes

Get all SDK status codes

Functions

CreateScanExchanger

  • CreateScanExchanger(data?: ScanExchanger, onUpdate: function): any

Decrypt

  • Decrypt(dataEncrypted: string, key: string): any
  • Decrypt protected object

    Parameters

    • dataEncrypted: string

      is encrypted object as string

    • key: string

      is secret key with which data will be decrypted

    Returns any

Encrypt

  • Encrypt(data: any, key: string): string
  • Protect plain object

    Parameters

    • data: any

      is plain object

    • key: string

      us secret key with which data will be encrypted

    Returns string

IsDesktopToMobileAvailable

  • IsDesktopToMobileAvailable(): Promise<boolean>
  • Check if all requirements for desktop-to-mobile feature are available

    Returns Promise<boolean>

RegisterListener

ScanImage

SendImage

  • Push image (file or video frame) to scanning queue, results will be handled by global listener(s)

    Parameters

    Returns void

SetAuthorization

  • SetAuthorization(authorizationHeader: string): void

SetEndpoint

  • SetEndpoint(endpoint: string): void
  • Set HTTP API endpoint for next request

    Parameters

    • endpoint: string

    Returns void

SetExportImages

  • SetExportImages(isExportImagesEnabled: boolean): void
  • Change export images flag for next request

    Parameters

    • isExportImagesEnabled: boolean

      is flag which describes does API should return extracted images in next response

    Returns void

SetIsDataPersistingEnabled

  • SetIsDataPersistingEnabled(isEnabled: boolean): void
  • When Authorization is not set it is available to disable persiting of uploaded data, by default it is enabled this should be disabled for every page where GDPR is not implemented and this is ability to disable data persisting on some demo pages

    Parameters

    • isEnabled: boolean

      is flag which describes should or should not API persist uploaded data, be default it is enabled

    Returns void

SetRecognizers

  • SetRecognizers(recognizers: string | string[]): void
  • Set recognizers which will be used in next request

    Parameters

    • recognizers: string | string[]

    Returns void

SetUserId

  • SetUserId(userId: string): void
  • Set unique user ID which will be stored with uploaded image to associate image with user who uploaded the image

    Parameters

    • userId: string

      is string user identificator, recommended it to be an user's email because when delete request is sent by this email, all images associated with this email will be permanentally removed if it is stored on upload, not every image will be stored, this depends on other API key options

    Returns void

TerminateRequest

  • TerminateRequest(): void
  • Terminate all queued HTTP requests. This is useful when images are sending from camera video stream in ms time periods and when successful result is received then all pending requests could be terminated, this should be primary used for application performance improvements, to break all HTTP connections which will return redundant results

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc