> For the complete documentation index, see [llms.txt](https://lionstudios.gitbook.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lionstudios.gitbook.io/readme/features/privacy-policy-update.md).

# Privacy Policy Update

The Privacy Policy Update package manages the notification requirements for Privacy Policy changes across all studios. It ensures existing users are informed ahead of any new policy taking effect, displaying a popup at game startup so players can review the updated policy.

<figure><img src="/files/1pfrcMJRgMCxtz78K2X4" alt="" width="305"><figcaption></figcaption></figure>

***

## Implementation

* Install the `Lion - Privacy Policy Update` package from the Unity package manager.
* The package will automatically determine when its time to show the popup. The requirements on whether to show it or not are configured from the Global remote config handled by the Lion Studios team.
* Criteria of whether the popup will be shown or not
  * Device date is on or after the privacy policy start date defined in Remote Config.
  * The user must have **installed the app before** the privacy policy start date defined in Remote Config (i.e. they are an existing user who hasn't seen the updated policy)
  * The notice must not have been **previously dismissed** by the user

#### Callbacks

* `OnPrivacyPolicyShown` - Fired when privacy policy is shown

```
PrivacyPolicyUpdateManager.OnPrivacyPolicyShown += () =>
{
    Debug.Log("Privacy Policy is shown!");
};
```

* `OnPrivacyPolicyDismissed` - Fired when privacy policy is closed by the user

```
PrivacyPolicyUpdateManager.OnPrivacyPolicyDismissed += () =>
{
    Debug.Log("Privacy Policy dismissed!");
};
```

#### Public Methods  `SetReturningUser(bool isReturningUser)` (NOT ALWAYS REQUIRED)&#x20;

If your game's previously released version did not have LionSDK installed, you must manually specify whether the current user is new or returning.

* Call `SetReturningUser()` in a `RuntimeInitializeOnLoadMethod` with BeforeSceneLoad to ensure it is invoked before the PrivacyPolicy package initializes

Example:

```
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
private static void InitializeReturningUserState()
{
    bool isReturningUser = PlayerPrefs.HasKey("TotalSessions") || 
                           PlayerPrefs.HasKey("PlayerLevel") ||
                           PlayerPrefs.HasKey("LastLoginDate");

    PrivacyPolicyUpdateManager.SetReturningUser(isReturningUser);
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://lionstudios.gitbook.io/readme/features/privacy-policy-update.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
