# CheckEnableThermalStateForIOS(BuildProfile, bool)

> Checks the "Adjust iOS FPS based on thermal state" Player Setting and, if it is enabled, prompts the user (via dialog in interactive sessions) to disable it so the Adaptive Performance Apple provider can manage thermal mitigation.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.AdaptivePerformance.Editor](/engine/6000.5/script-reference/unityeditor/adaptiveperformance/editor.md)
* **Assembly:** UnityEditor.AdaptivePerformanceModule

```csharp
public static bool CheckEnableThermalStateForIOS(BuildProfile profile = null, bool forcePrompt = false)
```

### Parameters

**** (\[BuildProfile]\(/engine/6000.5/script-reference/unityeditor/build/profile/buildprofile)): Optional active build profile. When supplied, the profile's player settings are inspected and updated; otherwise the project-wide PlayerSettings are used.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): When `true`, bypass the per-session "asked once" suppression and always re-display the dialog (when not in batch mode). Build-time callers should pass `true` so a misconfiguration is surfaced even if the user already dismissed the dialog earlier in the editor session.

### Returns

| Type                                                          | Description                                                                                                                                                                                                          |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the setting is still enabled (i.e. the user declined to disable it, or the dialog could not be shown in batch mode); `false` if the setting is already disabled or was disabled in response to the prompt. |
