Refined the recording Live Activity presentation in the Widget target.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import Commanding
|
||||
import AppIntents
|
||||
import Commanding
|
||||
|
||||
/// The intent behind the send button of the recording Live Activity, which sends the paused recording for processing.
|
||||
///
|
||||
@@ -10,9 +10,14 @@ struct ProcessRecordingIntent: LiveActivityIntent {
|
||||
|
||||
// MARK: Constants
|
||||
|
||||
static let title: LocalizedStringResource = "Process Recording"
|
||||
static let description = IntentDescription("Sends the paused recording for processing.")
|
||||
static let openAppWhenRun = false
|
||||
/// The localized title of the intent, resolved from the widget target's string catalog and shown wherever the system surfaces
|
||||
/// the intent.
|
||||
static let title: LocalizedStringResource = "intent.processing-recording.title"
|
||||
/// The localized description of the intent, resolved from the widget target's string catalog.
|
||||
static let description = IntentDescription("intent.processing-recording.description")
|
||||
/// Whether running the intent brings the app to the foreground; `true`, so sending the recording for processing opens the app
|
||||
/// from the Live Activity.
|
||||
static let openAppWhenRun = true
|
||||
|
||||
// MARK: Methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user