Files
SideStore/Sources/SideStoreAppKit/Extensions/INInteraction+AltStore.swift

22 lines
606 B
Swift
Raw Normal View History

//
// INInteraction+AltStore.swift
// AltStore
//
// Created by Riley Testut on 9/4/20.
// Copyright © 2020 Riley Testut. All rights reserved.
//
import Intents
// Requires iOS 14 in-app intent handling.
@available(iOS 14, *)
2023-03-01 00:48:36 -05:00
extension INInteraction {
static func refreshAllApps() -> INInteraction {
let refreshAllIntent = RefreshAllIntent()
refreshAllIntent.suggestedInvocationPhrase = NSString.deferredLocalizedIntentsString(with: "Refresh my apps") as String
2023-03-01 00:48:36 -05:00
let interaction = INInteraction(intent: refreshAllIntent, response: nil)
return interaction
}
}