Options
All
  • Public
  • Public/Protected
  • All
Menu

HTTP layer with Microblink API

Hierarchy

  • MicroblinkApi

Implements

Index

Constructors

constructor

Properties

Private activeRequests

activeRequests: XMLHttpRequest[] = []

Private authorizationHeader

authorizationHeader: string = ""

Private endpoint

endpoint: string

Private isDataPersistingEnabled

isDataPersistingEnabled: boolean = true

Private isExportImagesEnabled

isExportImagesEnabled: boolean = false

Private userId

userId: string = ""

Accessors

Private isAuthorizationHeaderValid

isAuthorizationHeaderValid:

Authorization header offline validator, just check for Authorization header format before sending it to the API

Methods

Recognize

  • Recognize(recognizers: string | string[], imageBase64: string, uploadProgress?: EventListener): Observable<any>
  • Execute remote recognition

    Parameters

    • recognizers: string | string[]

      is string or array of strings on which image will be processed

    • imageBase64: string

      is Base64 encoded image which should contain document for processing

    • Optional uploadProgress: EventListener

      (optional) is XHR event listener for image upload to show upload progress bar on UI

    Returns Observable<any>

SetAuthorization

  • SetAuthorization(authorizationHeader: string): void

SetEndpoint

  • SetEndpoint(endpoint: string): void

SetExportImages

  • SetExportImages(isExportImagesEnabled: boolean): 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

SetUserId

  • SetUserId(userId: string): void
  • Set user identificator which will be stored with uploaded image

    Parameters

    • userId: string

      is any string which unique identifies user who use SDK and upload any image to API

    Returns void

TerminateAll

  • TerminateAll(): 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