# Network-Based Feature Gating

## Goal

Enable/disable features based on current internet connectivity.

## Actions used

* `NetworkServicesGetStatus`
* `NetworkServicesOnInternetConnectivityChanged` (persistent listener)

## Variables

* `isInternetActive` (Bool)

## Flow

1. On entering a screen: call `NetworkServicesGetStatus` and gate features using `isInternetActive`.
2. Keep `NetworkServicesOnInternetConnectivityChanged` active to update UI dynamically:
   * `eventConnected` → enable online-only buttons
   * `eventDisconnected` → disable them and show an offline indicator


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.essentialkit.voxelbusters.com/features/network-services/playmaker/use-cases/use-case-3-feature-gating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
