Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.companion.ActionRequest.Builder](https://developer.android.com/reference/kotlin/android/companion/ActionRequest.Builder#) |

A builder for creating `https://developer.android.com/reference/kotlin/android/companion/ActionRequest`.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/companion/ActionRequest.Builder#Builder(kotlin.Int,%20kotlin.Int)(action: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, operation: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` <br /> |

| Public methods ||
|---|---|
| [ActionRequest](https://developer.android.com/reference/kotlin/android/companion/ActionRequest) | `https://developer.android.com/reference/kotlin/android/companion/ActionRequest.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/android/companion/ActionRequest` object. |

## Public constructors

### Builder

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
Builder(
    action: Int, 
    operation: Int)
```

| Parameters ||
|---|---|
| `action` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The action to request. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/companion/ActionRequest#REQUEST_NEARBY_SCANNING:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/companion/ActionRequest#REQUEST_NEARBY_ADVERTISING:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/companion/ActionRequest#REQUEST_TRANSPORT:kotlin.Int` |
| `operation` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The operation to perform. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/companion/ActionRequest#OP_ACTIVATE:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/companion/ActionRequest#OP_DEACTIVATE:kotlin.Int` |

## Public methods

### build

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun build(): ActionRequest
```

Builds the `https://developer.android.com/reference/kotlin/android/companion/ActionRequest` object.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/companion/ActionRequest` | This value cannot be `null`. |