---
title: "update(_:)"
framework: nowplaying
role: symbol
role_heading: Instance Method
path: "nowplaying/remotemediasession/update(_:)"
---

# update(_:)

Updates the session with new attributes.

## Declaration

```swift
@MainActor func update(_ attributes: Attributes) async throws
```

## Parameters

- `attributes`: The updated attributes for this session.

## Discussion

Discussion When session attributes change, call this method to send the updated attributes to your app extension through the update(_:) method. note: RemoteMediaSessionError.invalidAttributes if attributes.id doesn’t match this session’s id. RemoteMediaSessionError.internalFailure if the system couldn’t deliver the update.
