/ fm / liveswitch / Util
Class: Util
fm.liveswitch.Util
Table of contents
Constructors
Properties
Methods
- getTypeString
- absolutizeUrl
- addOnLoad
- attachProperties
- bindReady
- canAttachProperties
- compareHost
- construct
- extend
- getBrowserVersion
- getCurrentHost
- getHost
- getJavaVersion
- getWildcard
- hasActiveX
- hasJava
- initialize
- isAndroid
- isArray
- isArrayType
- isBlackBerry
- isBoolean
- isChrome
- isDate
- isEdge
- isError
- isFirefox
- isFunction
- isIE
- isIE6
- isIE7
- isIE8
- isIE9
- isJavaWebStartInstalledActiveX
- isMobile
- isNull
- isNullOrUndefined
- isNumber
- isObject
- isObjectType
- isOpera
- isPlainObject
- isRegExp
- isSafari
- isSafari10
- isSafari11
- isSafari12
- isSafari12_1
- isSafari9
- isString
- isUint8Array
- isUndefined
- isWindows
- isXD
- isiOS
- observe
- observeAttr
- parseUrl
- randomChar
- ready
- unobserve
- wildcard
Constructors
constructor
+ new Util(): Util
Returns: Util
Properties
__initialized
▪ Private
Static
__initialized: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:515
_chars
▪ Private
Static
_chars: string= 'abcdefghijklmnopqrstuvwxyz'
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:20
_loadFunctions
▪ Private
Static
_loadFunctions: Function[]
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:21
_loaded
▪ Private
Static
_loaded: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:25
_readyBound
▪ Private
Static
_readyBound: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:24
_readyRun
▪ Private
Static
_readyRun: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:23
_wildcard
▪ Private
Static
_wildcard: string= null
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:22
_xdCache
▪ Private
Static
_xdCache: Hash<string, string>
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:19
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:16
absolutizeUrl
▸ Static
absolutizeUrl(url?
: string): string
Parameters:
Name | Type |
---|---|
url? |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:331
addOnLoad
▸ Static
addOnLoad(fn
: Function): void
Parameters:
Name | Type |
---|---|
fn |
Function |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:441
attachProperties
▸ Static
attachProperties<T>(instance
: T, obj
: any): T
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
instance |
T |
obj |
any |
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:114
bindReady
▸ Static
bindReady(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:459
canAttachProperties
▸ Static
canAttachProperties<T>(instance
: T, obj
: any): boolean
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
instance |
T |
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:103
compareHost
▸ Private
Static
compareHost(host1
: Host, host2
: Host): boolean
Parameters:
Name | Type |
---|---|
host1 |
Host |
host2 |
Host |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:306
construct
▸ Static
construct<T>(func
: Function, args
: IArguments): T
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
func |
Function |
args |
IArguments |
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:428
extend
▸ Static
extend(dest
: any, src
: any): any
Parameters:
Name | Type |
---|---|
dest |
any |
src |
any |
Returns: any
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:435
getBrowserVersion
▸ Static
getBrowserVersion(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:213
getCurrentHost
▸ Private
Static
getCurrentHost(): Host
Returns: Host
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:309
getHost
▸ Private
Static
getHost(url?
: string): Host
Parameters:
Name | Type |
---|---|
url? |
string |
Returns: Host
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:296
getJavaVersion
▸ Static
getJavaVersion(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:234
getWildcard
▸ Static
getWildcard(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:360
hasActiveX
▸ Static
hasActiveX(checkFiltering?
: boolean): boolean
Parameters:
Name | Type |
---|---|
checkFiltering? |
boolean |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:205
hasJava
▸ Static
hasJava(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:231
initialize
▸ Static
initialize(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:516
isAndroid
▸ Static
isAndroid(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:189
isArray
▸ Static
isArray(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:47
isArrayType
▸ Static
isArrayType(obj
: any, typeString
: string): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
typeString |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:77
isBlackBerry
▸ Static
isBlackBerry(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:192
isBoolean
▸ Static
isBoolean(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:32
isChrome
▸ Static
isChrome(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:155
isDate
▸ Static
isDate(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:53
isEdge
▸ Static
isEdge(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:152
isError
▸ Static
isError(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:59
isFirefox
▸ Static
isFirefox(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:158
isFunction
▸ Static
isFunction(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:44
isIE
▸ Static
isIE(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:137
isIE6
▸ Static
isIE6(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:140
isIE7
▸ Static
isIE7(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:143
isIE8
▸ Static
isIE8(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:146
isIE9
▸ Static
isIE9(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:149
isJavaWebStartInstalledActiveX
▸ Static
isJavaWebStartInstalledActiveX(version
: string): boolean
Parameters:
Name | Type |
---|---|
version |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:271
isMobile
▸ Static
isMobile(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:202
isNull
▸ Static
isNull(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:35
isNullOrUndefined
▸ Static
isNullOrUndefined(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:41
isNumber
▸ Static
isNumber(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:26
isObject
▸ Static
isObject(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:71
isObjectType
▸ Static
isObjectType(obj
: any, typeString
: string): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
typeString |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:74
isOpera
▸ Static
isOpera(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:183
isPlainObject
▸ Static
isPlainObject(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:80
isRegExp
▸ Static
isRegExp(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:56
isSafari
▸ Static
isSafari(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:177
isSafari10
▸ Static
isSafari10(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:165
isSafari11
▸ Static
isSafari11(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:168
isSafari12
▸ Static
isSafari12(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:171
isSafari12_1
▸ Static
isSafari12_1(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:174
isSafari9
▸ Static
isSafari9(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:162
isString
▸ Static
isString(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:29
isUint8Array
▸ Static
isUint8Array(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:50
isUndefined
▸ Static
isUndefined(obj
: any): boolean
Parameters:
Name | Type |
---|---|
obj |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:38
isWindows
▸ Static
isWindows(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:186
isXD
▸ Static
isXD(url1
: string, url2?
: string): boolean
Parameters:
Name | Type |
---|---|
url1 |
string |
url2? |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:278
isiOS
▸ Static
isiOS(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:195
observe
▸ Static
observe(element
: EventTarget, event
: string, handler
: Function): void
Parameters:
Name | Type |
---|---|
element |
EventTarget |
event |
string |
handler |
Function |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:372
observeAttr
▸ Static
observeAttr(element
: EventTarget, handler
: Function): void
Parameters:
Name | Type |
---|---|
element |
EventTarget |
handler |
Function |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:388
parseUrl
▸ Private
Static
parseUrl(url
: string): ParsedUrl
Parameters:
Name | Type |
---|---|
url |
string |
Returns: ParsedUrl
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:317
randomChar
▸ Static
randomChar(str
: string): string
Parameters:
Name | Type |
---|---|
str |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:366
ready
▸ Static
ready(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:448
unobserve
▸ Static
unobserve(element
: EventTarget, event
: string, handler
: Function): void
Parameters:
Name | Type |
---|---|
element |
EventTarget |
event |
string |
handler |
Function |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:381
wildcard
▸ Static
wildcard(str
: string): string
Parameters:
Name | Type |
---|---|
str |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Util.ts:357