UNPKG

398 BTypeScriptView Raw
1declare type SensorEventName = 'deviceorientation' | 'devicemotion';
2export declare function getRequestPermission(): (() => Promise<PermissionState>) | null;
3export declare function assertSensorEventEnabledAsync(eventName: SensorEventName, timeout?: number): Promise<boolean>;
4export declare function isSensorEnabledAsync(eventName: SensorEventName, timeout?: number): Promise<boolean>;
5export {};