---
title: BGAppRefreshTask
framework: backgroundtasks
role: symbol
role_heading: Class
path: backgroundtasks/bgapprefreshtask
---

# BGAppRefreshTask

An object representing a short task typically used to refresh content that’s run while the app is in the background.

## Declaration

```swift
class BGAppRefreshTask
```

## Mentioned in

Choosing Background Strategies for Your App

## Overview

Overview Use app refresh tasks for updating your app with small bits of information, such as the latest stock values. Executing app refresh tasks requires setting the fetch UIBackgroundModes capability. For information on setting this capability, see BGTaskScheduler.

## Relationships

### Inherits From

- [BGTask](backgroundtasks/bgtask.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Background tasks

- [Using background tasks to update your app](uikit/using-background-tasks-to-update-your-app.md)
- [Refreshing and Maintaining Your App Using Background Tasks](backgroundtasks/refreshing-and-maintaining-your-app-using-background-tasks.md)
- [Choosing Background Strategies for Your App](backgroundtasks/choosing-background-strategies-for-your-app.md)
- [BGProcessingTask](backgroundtasks/bgprocessingtask.md)
- [BGHealthResearchTask](backgroundtasks/bghealthresearchtask.md)
