mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-16 08:10:43 +02:00
30 lines
584 B
TypeScript
30 lines
584 B
TypeScript
export type HapticPrimitive =
|
|
| 'click'
|
|
| 'thud'
|
|
| 'spin'
|
|
| 'quickRise'
|
|
| 'slowRise'
|
|
| 'quickFall'
|
|
| 'tick'
|
|
| 'lowTick';
|
|
|
|
export interface HapticCompositionStep {
|
|
primitive: HapticPrimitive;
|
|
scale: number;
|
|
delayMs?: number;
|
|
}
|
|
|
|
export interface HapticPrimitiveCapability {
|
|
supported: boolean;
|
|
durationMs: number;
|
|
}
|
|
|
|
export interface HapticCapabilities {
|
|
moduleAvailable: boolean;
|
|
apiLevel: number;
|
|
hasVibrator: boolean;
|
|
hasAmplitudeControl: boolean;
|
|
touchFeedbackEnabled: boolean;
|
|
primitives: Record<HapticPrimitive, HapticPrimitiveCapability>;
|
|
}
|