Contextual Awareness in Shortcuts

What is Contextual Programming?

Contextual programming is an approach to software development where the behavior of a program can change depending on the context in which it is executed. This approach allows programs to be more adaptive and responsive to different situations and environments. Contextual programming is particularly relevant in areas such as mobile computing, Internet of Things(IoT), and pervasive computing, where the ability to adapt to chaning environments and user needs is crucial.

Implementation in Siri Shortcuts

The key aspects of contextual programming in Shortcuts are:

  1. Context Awareness: The program is aware of its environment, including factors such as location, time of the day, focus mode, device type, etc.
  2. Dynamic Adaptation: The program can dynamically adjust its behavior based on the given context. For example, a mobile app might change its interface or functionality depending on the user’s current device context: notion object, application, focus mode, onscreen content, and more.
  3. Context Sensing: The use of sensors or data inputs to gather context information. This can include the information gathered from the Share Sheet, Clipboard, as well as context-providing actions like: Get Current App, Get What’s On Screen, Get Current Focus, Get Device Details.
  4. Context Processing: This is all about our decision to process the provided contextual data in specific way. For example, it will be crucial to have the shortcut know that in case we have URL in the clipboard, the Save URL to Notion shortcut will be executed and the URL will be automatically saved.

Building Contextual NotionOS Course Introduction

Watch the video

Keep Automating, Nazar