diff --git a/README.md b/README.md index 053e4cd..005df12 100644 --- a/README.md +++ b/README.md @@ -232,5 +232,6 @@ might break in future iOS versions or have your app rejected in the App Store. | **`Tethering`** | 'tethering' | Tethering settings (used to create a hotspot with mobile data). | | **`DoNotDisturb`** | 'doNotDisturb' | Do Not Disturb settings. | | **`TouchIdPasscode`** | 'touchIdPasscode' | Touch id passcode settings. | +| **`ScreenTime`** | 'screenTime' | Scree Time settings. | diff --git a/ios/Plugin/NativeSettingsPlugin.swift b/ios/Plugin/NativeSettingsPlugin.swift index e18ab14..06e239d 100644 --- a/ios/Plugin/NativeSettingsPlugin.swift +++ b/ios/Plugin/NativeSettingsPlugin.swift @@ -31,7 +31,8 @@ public class NativeSettingsPlugin: CAPPlugin { "wifi": "App-prefs:WIFI", "tethering": "App-prefs:INTERNET_TETHERING", "doNotDisturb": "App-prefs:DO_NOT_DISTURB", - "touchIdPasscode": "App-prefs:TOUCHID_PASSCODE" + "touchIdPasscode": "App-prefs:TOUCHID_PASSCODE", + "screenTime": "App-prefs:SCREEN_TIME" ] @objc func open(_ call: CAPPluginCall) { diff --git a/src/definitions.ts b/src/definitions.ts index ace9c02..056c638 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -413,4 +413,9 @@ export enum IOSSettings { * Touch id passcode settings. */ TouchIdPasscode = 'touchIdPasscode', + + /** + * Screen Time settings. + */ + ScreenTime = 'screenTime', }