waud.js
API Docs for v1.0.3
Show:

WaudUtils

Defined in: src/WaudUtils.hx:3

Summary

Collection of Browser Utility Functions.

Item Index

Methods

Methods

getiOSVersion

Syntax

getiOSVersion

() Array static

Summary

Function to get the iOS version.

Returns:

Array:

[9,0,1]

Example:

Waud.getiOSVersion();

isAndroid

Defined in src/WaudUtils.hx:10

Syntax

isAndroid

() Bool static

Summary

Function to check if the device is Android or not.

Returns:

Bool:

true or false

Example:

Waud.isAndroid();

isChrome

Defined in src/WaudUtils.hx:80

Syntax

isChrome

() Bool static

Summary

Function to check if the device is Chrome or not.

Returns:

Bool:

true or false

Example:

Waud.isChrome();

isFirefox

Defined in src/WaudUtils.hx:52

Syntax

isFirefox

() Bool static

Summary

Function to check if the device is Firefox or not.

Returns:

Bool:

true or false

Example:

Waud.isFirefox();

isiOS

Defined in src/WaudUtils.hx:24

Syntax

isiOS

() Bool static

Summary

Function to check if the device is iOS or not.

Returns:

Bool:

true or false

Example:

Waud.isiOS();

isMobile

Syntax

isMobile

() Bool static

Summary

Function to check if the device is mobile or not.

Returns:

Bool:

true or false

Example:

Waud.isMobile();

isOpera

Defined in src/WaudUtils.hx:66

Syntax

isOpera

() Bool static

Summary

Function to check if the device is Opera or not.

Returns:

Bool:

true or false

Example:

Waud.isOpera();

isSafari

Defined in src/WaudUtils.hx:94

Syntax

isSafari

() Bool static

Summary

Function to check if the device is Safari or not.

Returns:

Bool:

true or false

Example:

Waud.isSafari();

isWindowsPhone

Defined in src/WaudUtils.hx:38

Syntax

isWindowsPhone

() Bool static

Summary

Function to check if the device is Windows Phone or not.

Returns:

Bool:

true or false

Example:

Waud.isWindowsPhone();

setDefaultOptions

Syntax

setDefaultOptions

() WaudSoundOptions static

Summary

Function to set default audio options.

Returns:

Example:

Waud.setDefaultOptions(options);