---
name: "openCreateTapToRunScene"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.0" }
  - { name: "BizKit", version: "4.6.0" }
title: "ty.device.openCreateTapToRunScene - Navigate to Create Tap-to-Run Scene Page"
---

## openCreateTapToRunScene

> [VERSION] Base Library >= 2.21.0 | BizKit >= 4.6.0

> 💡 Currently unavailable in the IDE simulator and on-device debugging environment.
> Supports both callback and Promise usage: if success/fail/complete is provided, callbacks are used; otherwise a Promise is returned.

### Description

Navigate to the page to create a one-tap execution scene

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `option` | `OpenCreateTapToRunSceneOption` | No | Configuration parameters |

### Return Value

Type: `Promise<void>`

Returns a Promise when no callback is provided; if success/fail/complete is passed, uses callbacks and returns undefined

### Referenced Types

##### `interface` OpenCreateTapToRunSceneOption

| Property | Type | Description |
| --- | --- | --- |
| `devId` | `string` | Device ID |
| `success` | `() => void` | Success callback |
| `fail` | `(err: Object) => void` | Callback on failure |
| `complete` | `() => void` | Callback on complete (success or failure) |

##### `type` OpenCreateTapToRunSceneOption.fail.err

| Property | Type | Description |
| --- | --- | --- |
| `errorMsg` | `string` |  |
| `errorCode` | `string` |  |


### Examples

#### Open the one-tap execution scene creation page

```ts
ty.device.openCreateTapToRunScene({
  devId: 'devId',
}).then(() => {
  console.log('Successfully opened the create scene page');
});
```
