areActivitiesEnabled
TypeScriptget areActivitiesEnabled(): booleanSwift declarationfinal var areActivitiesEnabled: Bool { get }A Boolean value that indicates whether your app can start a Live Activity.
class · iOS 16.1+ · SDK 27.1
final class ActivityAuthorizationInfoAn object with information about whether a person allowed your app to start Live Activities and permitted content updates with frequent ActivityKit push notifications. By default, your app can start, update, and end a Live Activity if you use ActivityKit to offer Live Activities. However, a person can deactivate Live Activities for an app in Settings. To check if your app can start, update, or end a Live Activity, use the synchronous ``ActivityKit/ActivityAuthorizationInfo/areActivitiesEnabled`` property or the asynchronous ``ActivityKit/ActivityAuthorizationInfo/activityEnablementUpdates-swift.property`` sequence. Similarly, `ActivityAuthorizationInfo` provides functionality to check whether a person has permitted your app to update Live Activities with frequent ActivityKit push notifications. To check whether you can send frequent ActivityKit push notifications to update Live Activity content, use the synchronous ``ActivityKit/ActivityAuthorizationInfo/frequentPushesEnabled`` property or the asynchronous ``ActivityKit/ActivityAuthorizationInfo/frequentPushEnablementUpdates-swift.property`` sequence. > Note: To update a Live Activity with frequent ActivityKit push notifications, add the `NSSupportsFrequentLiveActivityUpdates` key with a Boolean value of `YES` to your app's `Info.plist` file. For additional information, see <doc:starting-and-updating-live-activities-with-activitykit-push-notifications>.
get areActivitiesEnabled(): booleanSwift declarationfinal var areActivitiesEnabled: Bool { get }A Boolean value that indicates whether your app can start a Live Activity.
get frequentPushesEnabled(): booleanSwift declarationfinal var frequentPushesEnabled: Bool { get }A Boolean value that indicates whether a person permitted you to update Live Activities with frequent ActivityKit push notifications.
get activityEnablementUpdates(): ActivityAuthorizationInfo_ActivityEnablementUpdatesSwift declarationfinal let activityEnablementUpdates: ActivityAuthorizationInfo.ActivityEnablementUpdatesAn asynchronous sequence you use to observe whether your app can start a Live Activity.
get frequentPushEnablementUpdates(): ActivityAuthorizationInfo_FrequentPushEnablementUpdatesSwift declarationfinal let frequentPushEnablementUpdates: ActivityAuthorizationInfo.FrequentPushEnablementUpdatesAn asynchronous sequence you use to observe whether a person permitted you to update Live Activities with frequent ActivityKit push notifications.
static init(): ActivityAuthorizationInfoSwift declarationinit()Creates an object you use to observe user authorizations for starting Live Activities and updating them with ActivityKit push notifications.
No declarations were skipped in this snapshot.