目录

Declaring the Integration with the System-Wide Senior Mode

Since API version 26.0.0, apps that have implemented the independent senior mode feature (also known as elder-friendly mode, care mode, or large text mode) can declare the following metadata under the corresponding module in the module.json5 file of the app project. After the declaration, users to view the app by going to Settings > Accessibility > Senior mode > Apps and freely toggle the Senior mode switch. Note that if a user disables the system-wide Senior mode in Settings, the senior mode in the app will also be disabled. If the user enables the system-wide Senior mode again, the in-app senior mode previously disabled will be enabled accordingly.

To ensure that the senior mode status in the app is synchronized with the Senior mode switch status on the system settings screen in real time, you are advised to complete the configuration by referring to Synchronizing the In-App Senior Mode with System Settings.

It is recommended that the declaration be made in the module that has the Senior mode feature.

{
  "module": {
    // Other declarations are omitted here.
    "metadata": [{
      "name": "senior_mode",
      "value": "independent_control"
    }]
  }
}

If your app does not have an independent senior mode switch, you can refer to Obtaining the Senior Mode Status to make the app follow the system-wide Senior mode status.