# Titanium.App.iOS.ActivityAttributes

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

- Source: https://titaniumsdk.com/docs/sdk/13.0.0/Titanium.App.iOS.ActivityAttributes
- Titanium SDK version: 13.0.0
- Kind: pseudo
- Platforms: iPhone, iPad
- Since: Titanium SDK 12.0.0

To properly use these APIs, you need to habe your Widget Extension ready.
You can follow this [sample repository](https://github.com/hansemannn/titanium-widget-kit-sample-app) for an extended example.

## Example: Start a new activity

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

## Methods

### startActivity

- Platforms: iPhone, iPad

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

Parameters:

- `value` (Object): The 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.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

