Skip to content

Commit d653ca5

Browse files
committed
Remove v1 doc change
1 parent 13c5dff commit d653ca5

File tree

2 files changed

+2
-53
lines changed

2 files changed

+2
-53
lines changed

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

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ order: 1000
55

66
## Overview
77

8-
The System API provides access to basic system functions like flashlight control, platform detection, and network status monitoring.
8+
The System API provides access to basic system functions like flashlight control and platform detection.
99

1010
```php
1111
use Native\Mobile\Facades\System;
@@ -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)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ order: 1500
55

66
## Overview
77

8-
The System API provides access to basic system functions like flashlight control, platform detection, and network status monitoring.
8+
The System API provides access to basic system functions like flashlight control and platform detection.
99

1010
```php
1111
use Native\Mobile\Facades\System;

0 commit comments

Comments
 (0)