From b6b4124ba1912ed05be144013c749a8f12a84571 Mon Sep 17 00:00:00 2001 From: Dan Soppelsa Date: Mon, 13 Apr 2026 18:43:52 -0400 Subject: [PATCH] Update toggleFlashlight to flashlight in readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 03ba9ac..99de2c9 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ use Native\Mobile\Facades\Device; Device::vibrate(); // Toggle flashlight -$result = Device::toggleFlashlight(); +$result = Device::flashlight(); // Returns: ['success' => true, 'state' => true|false] // Get device ID @@ -48,7 +48,7 @@ import { Device } from '#nativephp'; await Device.vibrate(); // Toggle flashlight -const flashResult = await Device.toggleFlashlight(); +const flashResult = await Device.flashlight(); console.log('Flashlight state:', flashResult.state); // Get device ID @@ -74,7 +74,7 @@ Vibrate the device. **Returns:** `{ success: true }` -### `toggleFlashlight(): array` +### `flashlight(): array` Toggle the device flashlight on/off.