expo-sensors
Version:
Provides access to a hardware device's accelerometer, gyroscope, magnetometer, and pedometer.
9 lines • 648 B
TypeScript
import { type PermissionResponse } from 'expo';
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