<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLUpdateContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLUpdateContext"
  },
  "title" : "MLUpdateContext"
}
-->

# MLUpdateContext

The context an update task provides to your app’s completion and update progress handlers.

```
class MLUpdateContext
```

## Topics

### Getting the update context

[`event`](/documentation/CoreML/MLUpdateContext/event)

The event type that triggered an update task to notify your app’s completion and update progress handlers.

[`MLUpdateProgressEvent`](/documentation/CoreML/MLUpdateProgressEvent)

A type of event during a model update task.

[`task`](/documentation/CoreML/MLUpdateContext/task)

The update task that generated the update context.

[`parameters`](/documentation/CoreML/MLUpdateContext/parameters)

The parameters for the update task.

[`MLParameterKey`](/documentation/CoreML/MLParameterKey)

The keys for the parameter dictionary in a model configuration or a model update context.

### Evaluating the update

[`metrics`](/documentation/CoreML/MLUpdateContext/metrics)

The training metrics of the model for the update task, contained in a dictionary.

[`MLMetricKey`](/documentation/CoreML/MLMetricKey)

A key for the metrics dictionary in an update context.

### Saving an updated model

[`model`](/documentation/CoreML/MLUpdateContext/model)

The underlying Core ML model stored in memory.

[`MLWritable`](/documentation/CoreML/MLWritable)

A set of methods that saves a machine learning type to the file system.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)