| callback | AsyncCallback<boolean> | Yes | Callback used to return the result. The value **true** means that the passed effect ID is supported, and **false** means the opposite.|
| callback | AsyncCallback<boolean> | Yes | Callback used to return the result. The value **true** means that the passed effect ID is supported, and **false** means the opposite.|
**Example**
...
...
@@ -395,7 +395,7 @@ Checks whether the passed effect ID is supported. This API uses a promise to ret
| Promise<boolean> | Promise that returns the result. The value **true** means that the passed effect ID is supported, and **false** means the opposite.|
| Promise<boolean> | Promise that returns the result. The value **true** means that the passed effect ID is supported, and **false** means the opposite.|
**Example**
...
...
@@ -419,7 +419,7 @@ try {
console.error('Promise returned to indicate a failed vibration:'+JSON.stringify(error));
});
}catch(error){
console.error('exception in, error:'+JSON.stringify(error));
console.error('Exception in, error:'+JSON.stringify(error));