Starting from version 1078, the API prefix has been changed from hbs to qg. The original prefix hbs is still supported.
API | Description |
|---|---|
Vibrates a phone for a short period of time (15 milliseconds). | |
Vibrates a phone for a long period of time (400 milliseconds). |
Vibrates a phone for a short period of time (15 milliseconds).
Parameter | Type | Mandatory | Description |
|---|---|---|---|
success | function | No | Callback function triggered upon a successful API call. |
fail | function | No | Callback function triggered upon a failed API call. |
complete | function | No | If a function is passed, it will be called regardless of whether the API call succeeds or fails. |
qg.vibrateShort({
success : function () {
console.log("vibrateShort success");
},
fail:function(){
console.log("vibrateShort fail");
},
complete:function() {
console.log("vibrateShort complete");
}
}); Vibrates a phone for a long period of time (400 milliseconds).
Parameter | Type | Mandatory | Description |
|---|---|---|---|
success | function | No | Callback function triggered upon a successful API call. |
fail | function | No | Callback function triggered upon a failed API call. |
complete | function | No | If a function is passed, it will be called regardless of whether the API call succeeds or fails. |
qg.vibrateLong({
success : function () {
console.log("vibrateLong success" );
},
fail:function(){
console.log("vibrateLong fail");
},
complete:function() {
console.log("vibrateLong complete");
}
});