Properties
alert
alert
: (message
: string, alertCallback
: Function, title
: string, buttonName
: string) => void
Type declaration
-
- (message: string, alertCallback: Function, title: string, buttonName: string): void
-
Parameters
-
message: string
-
-
title: string
-
buttonName: string
Returns void
beep
beep: (times: number) => void
confirm
confirm
: (message
: string, confirmCallback
: Function, title
: string, buttonLabels
: string[]) => void
Type declaration
-
- (message: string, confirmCallback: Function, title: string, buttonLabels: string[]): void
-
Parameters
-
message: string
-
confirmCallback: Function
-
title: string
-
buttonLabels: string[]
Returns void
createSound
createSound: (name: string, url: string, isKeepOnPause: boolean) => void
Type declaration
-
- (name: string, url: string, isKeepOnPause: boolean): void
-
Parameters
-
name: string
-
url: string
-
isKeepOnPause: boolean
Returns void
getVolume
getVolume: () => number
initBeep
initBeep: () => void
initSound
initSound: (name: string) => void
isVibrateAvailable
isVibrateAvailable: () => boolean
isVibrateEnabled
isVibrateEnabled: () => boolean
playSound
play
Sound: (name: string, times: number, onFinished: Function, onError: Function) => void
Type declaration
-
-
Parameters
-
name: string
-
times: number
-
-
Returns void
setVibrateEnabled
setVibrateEnabled: (enabled: boolean) => void
setVolume
setVolume: (vol: number) => void
stopSound
stopSound: (name: string) => void
vibrate
vibrate: (milliseconds: number) => void
Type declaration
-
- (milliseconds: number): void