config
Configuration the script runs with.
Contains information about the configuration the script is currently being run under.
Properties
Section titled “Properties”runsFromHomeScreen
Section titled “runsFromHomeScreen”runsFromHomeScreen: boolWhether the script was run from the home screen. You can add a script to the home screen from the script settings.
Read-only.
runsInAccessoryWidget
Section titled “runsInAccessoryWidget”runsInAccessoryWidget: boolWhether the script is running in a widget.
This is true when running in an accessory widget. These widgets can appear on the Lock Screen. Accessory widgets are only available starting from iOS 16.
Read-only.
runsInActionExtension
Section titled “runsInActionExtension”runsInActionExtension: boolWhether the script is running in the action extension.
Read-only.
runsInApp
Section titled “runsInApp”runsInApp: boolWhether the script is running in the app.
Read-only.
runsInNotification
Section titled “runsInNotification”runsInNotification: boolWhether the script is running in a notification.
Read-only.
runsInWidget
Section titled “runsInWidget”runsInWidget: boolWhether the script is running in a widget.
This is true both when running in a widget on the Home Screen and when running in a widget on the Lock Screen.
Read-only.
runsWithSiri
Section titled “runsWithSiri”runsWithSiri: boolWhether the script is running with Siri.
Read-only.
widgetFamily
Section titled “widgetFamily”widgetFamily: stringThe size of the widget the script is running in.
Possible values are: small, medium, large, extraLarge, accessoryRectangular, accessoryInline, accessoryCircular, and null. The value is null when the script is not running in a widget.
extraLarge is only available on iPads running iPadOS 15. accessoryRectangular, accessoryInline, and accessoryCircular are only available starting from iOS 16.
Read-only.