Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/utils"

Index

Variables

Const FILE_PREFIX

FILE_PREFIX: string

Const RESOURCE_PREFIX

RESOURCE_PREFIX: string

Functions

GC

  • GC(): any
  • Returns any

convertString

  • convertString(value: any): any
  • Parameters

    • value: any

    Returns any

eliminateDuplicates

  • eliminateDuplicates(arr: Array<any>): Array<any>
  • Parameters

    • arr: Array<any>

    Returns Array<any>

escapeRegexSymbols

  • escapeRegexSymbols(source: string): string
  • Parameters

    • source: string

    Returns string

executeOnMainThread

  • executeOnMainThread(func: Function): any
  • Parameters

    • func: Function

    Returns any

getModuleName

  • getModuleName(path: string): string
  • Parameters

    • path: string

    Returns string

hasDuplicates

  • hasDuplicates(arr: Array<any>): boolean
  • Parameters

    • arr: Array<any>

    Returns boolean

isDataURI

  • isDataURI(uri: string): boolean
  • Parameters

    • uri: string

    Returns boolean

isFileOrResourcePath

  • isFileOrResourcePath(path: string): boolean
  • Parameters

    • path: string

    Returns boolean

isFontIconURI

  • isFontIconURI(uri: string): boolean
  • Parameters

    • uri: string

    Returns boolean

isRealDevice

  • isRealDevice(): boolean
  • Returns boolean

mainThreadify

  • mainThreadify(func: Function): function
  • Parameters

    • func: Function

    Returns function

    The wrapper function which schedules execution to the main thread

      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

mergeSort

  • mergeSort(arr: Array<any>, compareFunc: function): Array<any>
  • Parameters

    • arr: Array<any>
    • compareFunc: function
        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    Returns Array<any>

openFile

  • openFile(filePath: string): boolean
  • Parameters

    • filePath: string

    Returns boolean

openUrl

  • openUrl(url: string): boolean
  • Parameters

    • url: string

    Returns boolean

releaseNativeObject

  • releaseNativeObject(object: any): any
  • Parameters

    • object: any

    Returns any

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