Skip to content

Titanium.App.iOS.ActivityAttributes

Use this module to communicate with the native iOS 16+ Dynamic Island APIs.

To properly use these APIs, you need to have your Widget Extension ready. You can follow this sample repository for an extended example.

Since: 12.0.0 · Platforms: iphone, ipad

Methods #

startActivity #

Starts a new activity (aka the Dynamic Island) with the provided parameters

Parameters:
NameTypeSummaryOptional
valueObjectThe values to pass to your extension. For maximum flexibility, this parameter should be passed
as a String-based Object, e.g.
```
{
"param1": "Hello",
"param2": "World"
}
If you need to pass other types, please serialize them to a valid JSON object and pass it's
stringified representation to this method.
No

Examples #

Start a new activity

const attributes = Ti.App.iOS.createActivityAttributes();
attributes.startActivity({
  param1: "Hello",
  param2: "World",
  data: JSON.stringify({ intKey: 1, boolKey: true })
});

Titanium SDK Documentation