merge master into v5

This commit is contained in:
Daniel
2018-09-25 20:29:32 +02:00
parent 0422521db6
commit 89a5ca7ec5
5 changed files with 400 additions and 5 deletions
@@ -33,7 +33,6 @@ import { Injectable } from '@angular/core';
})
@Injectable()
export class TapticEngine extends IonicNativePlugin {
/**
* Use selection feedback generators to indicate a change in selection.
* @returns {Promise<any>} Returns a promise that resolves on success and rejects on error
@@ -46,7 +45,7 @@ export class TapticEngine extends IonicNativePlugin {
/**
* Use this to indicate success/failure/warning to the user.
* @param options {Object} should be of the type { type: 'success' } (or 'warning'/'error')
* @param options.type {string}
* @param {'success' | 'warning' | 'error'} options.type
* @returns {Promise<any>} Returns a promise that resolves on success and rejects on error
*/
@Cordova()
@@ -57,7 +56,7 @@ export class TapticEngine extends IonicNativePlugin {
/**
* Use this to indicate success/failure/warning to the user.
* @param options {Object} should be of the type { style: 'light' } (or 'medium'/'heavy')
* @param options.type {string}
* @param {'light' | 'medium' | 'heavy'} options.type
* @returns {Promise<any>} Returns a promise that resolves on success and rejects on error
*/
@Cordova()
@@ -65,4 +64,30 @@ export class TapticEngine extends IonicNativePlugin {
return;
}
/**
* Tell the taptic engine that a gesture for a selection change is starting.
* @returns {Promise<any>}
*/
@Cordova()
gestureSelectionStart(): Promise<any> {
return;
}
/**
* Tell the taptic engine that a selection changed during a gesture.
* @returns {Promise<any>}
*/
@Cordova()
gestureSelectionChanged(): Promise<any> {
return;
}
/**
* Tell the taptic engine we are done with a gesture. This needs to be called lest resources are not properly recycled.
* @returns {Promise<any>}
*/
@Cordova()
gestureSelectionEnd(): Promise<any> {
return;
}
}