nativescript-taptic-engine
Version:
Taptic Engine, the subtle iPhone vibration engine. Available since iPhone 6s (Plus).
27 lines (26 loc) • 708 B
TypeScript
export declare enum TapticEngineNotificationType {
SUCCESS = 1,
WARNING = 2,
ERROR = 3
}
export declare enum TapticEngineImpactStyle {
LIGHT = 1,
MEDIUM = 2,
HEAVY = 3
}
export interface TapticEngineNotificationOptions {
type?: TapticEngineNotificationType;
}
export interface TapticEngineImpactOptions {
style?: TapticEngineImpactStyle;
}
export declare class TapticEngine {
notification(arg?: TapticEngineNotificationOptions): Promise<any>;
impact(arg?: TapticEngineImpactOptions): Promise<any>;
selection(): Promise<any>;
}
export declare class TapticEngineUnofficial {
weakBoom(): Promise<any>;
strongBoom(): Promise<any>;
burst(): Promise<any>;
}