Skip to content

Commit b815117

Browse files
committed
Cleanup
1 parent 27f9b4b commit b815117

File tree

2 files changed

+1
-52
lines changed

2 files changed

+1
-52
lines changed

resources/views/docs/mobile/2/apis/scanner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@ public function handleScan($data, $format, $id = null)
8888
- **Platform Support:**
8989
- **Android:** ML Kit Barcode Scanning (API 21+)
9090
- **iOS:** AVFoundation (iOS 13.0+)
91-
- **Permissions:** You must enable the `qr_code` permission in `config/nativephp.php` to use the scanner. Camera
91+
- **Permissions:** You must enable the `scanner` permission in `config/nativephp.php` to use the scanner. Camera
9292
permissions are then handled automatically, and users will be prompted for permission the first time the scanner is
9393
used.

resources/views/docs/mobile/2/apis/system.md

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -34,54 +34,3 @@ Determines if the current device is running iOS.
3434
Determines if the current device is running Android.
3535

3636
**Returns:** `true` if Android, `false` otherwise
37-
38-
### `getNetworkStatus()`
39-
40-
Gets the current network connection status and details.
41-
42-
**Returns:** `?object` containing network information, or `null` if unavailable
43-
44-
```php
45-
$status = System::getNetworkStatus();
46-
47-
if ($status) {
48-
// Check if connected
49-
if ($status->connected) {
50-
echo "Connected via: " . $status->type; // "wifi", "cellular", "ethernet", or "unknown"
51-
52-
// Check if using expensive/metered connection
53-
if ($status->isExpensive) {
54-
echo "Using cellular data - consider limiting usage";
55-
}
56-
57-
// Check if Low Data Mode is enabled (iOS only)
58-
if ($status->isConstrained) {
59-
echo "Low Data Mode is enabled";
60-
}
61-
} else {
62-
echo "No network connection";
63-
}
64-
}
65-
```
66-
67-
**Response Object Properties:**
68-
69-
- `connected` (bool) - Whether the device has network connectivity
70-
- `type` (string) - Connection type: `"wifi"`, `"cellular"`, `"ethernet"`, or `"unknown"`
71-
- `isExpensive` (bool) - Whether the connection is metered/cellular
72-
- `isConstrained` (bool) - Whether Low Data Mode is enabled (iOS only, always `false` on Android)
73-
74-
**Configuration:**
75-
76-
Network state detection is enabled by default. You can disable it in `config/nativephp.php`:
77-
78-
```php
79-
'permissions' => [
80-
'network_state' => true, // Set to false to disable
81-
],
82-
```
83-
84-
**Platform Notes:**
85-
86-
- **iOS:** Uses `NWPathMonitor` from the Network framework. No additional permissions required.
87-
- **Android:** Requires `ACCESS_NETWORK_STATE` permission (automatically added when enabled)

0 commit comments

Comments
 (0)