- App.tsx: full navigation (Auth stack + Main tabs with 5 screens) - Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen - HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors - MapScreen: interactive map with layer toggles (6 layers) - MarketplaceScreen: categories (6), products (5), search - ChatScreen: AI chat with quick prompts (4), bot responses - ProfileScreen: user info, stats, menu (9 items), logout - AlertsScreen: alert list with severity, acknowledge - SensorsScreen: sensor list with type filters (6 types), search - ZonesScreen: zone cards with stats - SettingsScreen: language picker (FR/EN/ES/DE), privacy, about - Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n - Hooks: useSensors, useAlerts, useNotifications, useLocation - Components: Card, Button, LoadingSpinner, ErrorBoundary, Header - Services: iotService, notificationService (with axios API client) - Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN) - Theme: colors.ts with full design system (Blue Ocean palette) - Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
68 lines
3.4 KiB
TypeScript
68 lines
3.4 KiB
TypeScript
import { BarcodeScanningResult, BarcodeType } from './Camera.types';
|
|
import { PermissionResponse } from './legacy/Camera.types';
|
|
export { default as CameraView } from './CameraView';
|
|
/**
|
|
* Checks user's permissions for accessing camera.
|
|
* @return A promise that resolves to an object of type [PermissionResponse](#permissionresponse).
|
|
*/
|
|
declare function getCameraPermissionsAsync(): Promise<PermissionResponse>;
|
|
/**
|
|
* Asks the user to grant permissions for accessing camera.
|
|
* On iOS this will require apps to specify an `NSCameraUsageDescription` entry in the **Info.plist**.
|
|
* @return A promise that resolves to an object of type [PermissionResponse](#permissionresponse).
|
|
*/
|
|
declare function requestCameraPermissionsAsync(): Promise<PermissionResponse>;
|
|
/**
|
|
* Check or request permissions to access the camera.
|
|
* This uses both `requestCameraPermissionsAsync` and `getCameraPermissionsAsync` to interact with the permissions.
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* const [status, requestPermission] = useCameraPermissions();
|
|
* ```
|
|
*/
|
|
export declare const useCameraPermissions: (options?: import("expo-modules-core").PermissionHookOptions<object> | undefined) => [PermissionResponse | null, () => Promise<PermissionResponse>, () => Promise<PermissionResponse>];
|
|
/**
|
|
* Checks user's permissions for accessing microphone.
|
|
* @return A promise that resolves to an object of type [PermissionResponse](#permissionresponse).
|
|
*/
|
|
declare function getMicrophonePermissionsAsync(): Promise<PermissionResponse>;
|
|
/**
|
|
* Asks the user to grant permissions for accessing the microphone.
|
|
* On iOS this will require apps to specify an `NSMicrophoneUsageDescription` entry in the **Info.plist**.
|
|
* @return A promise that resolves to an object of type [PermissionResponse](#permissionresponse).
|
|
*/
|
|
declare function requestMicrophonePermissionsAsync(): Promise<PermissionResponse>;
|
|
/**
|
|
* Check or request permissions to access the microphone.
|
|
* This uses both `requestMicrophonePermissionsAsync` and `getMicrophonePermissionsAsync` to interact with the permissions.
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* const [status, requestPermission] = Camera.useMicrophonePermissions();
|
|
* ```
|
|
*/
|
|
export declare const useMicrophonePermissions: (options?: import("expo-modules-core").PermissionHookOptions<object> | undefined) => [PermissionResponse | null, () => Promise<PermissionResponse>, () => Promise<PermissionResponse>];
|
|
/**
|
|
* Scan bar codes from the image at the given URL.
|
|
* @param url URL to get the image from.
|
|
* @param barcodeTypes An array of bar code types. Defaults to all supported bar code types on
|
|
* the platform.
|
|
* > __Note:__ Only QR codes are supported on iOS.
|
|
* On android, the barcode should take up the majority of the image for best results.
|
|
* @return A possibly empty array of objects of the `BarcodeScanningResult` shape, where the type
|
|
* refers to the barcode type that was scanned and the data is the information encoded in the barcode.
|
|
*/
|
|
export declare function scanFromURLAsync(url: string, barcodeTypes?: BarcodeType[]): Promise<BarcodeScanningResult[]>;
|
|
export * from './Camera.types';
|
|
/**
|
|
* @hidden
|
|
*/
|
|
export declare const Camera: {
|
|
getCameraPermissionsAsync: typeof getCameraPermissionsAsync;
|
|
requestCameraPermissionsAsync: typeof requestCameraPermissionsAsync;
|
|
getMicrophonePermissionsAsync: typeof getMicrophonePermissionsAsync;
|
|
requestMicrophonePermissionsAsync: typeof requestMicrophonePermissionsAsync;
|
|
scanFromURLAsync: typeof scanFromURLAsync;
|
|
};
|
|
//# sourceMappingURL=index.d.ts.map
|