UNPKG

expo-sensors

Version:

Provides access to a hardware device's accelerometer, gyroscope, magnetometer, and pedometer.

9 lines 656 B
import { PermissionResponse } from 'expo-modules-core'; type SensorEventName = 'deviceorientation' | 'devicemotion'; export declare function getPermissionsAsync(): Promise<PermissionResponse>; export declare function requestPermissionsAsync(): Promise<PermissionResponse>; export declare function getRequestPermission(): (() => Promise<PermissionState>) | null; export declare function assertSensorEventEnabledAsync(eventName: SensorEventName, timeout?: number): Promise<boolean>; export declare function isSensorEnabledAsync(eventName: SensorEventName, timeout?: number): Promise<boolean>; export {}; //# sourceMappingURL=isSensorEnabledAsync.web.d.ts.map