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 main button of the recording Live Activity, which pauses or resumes the recording.
|
||||
///
|
||||
@@ -10,8 +10,13 @@ struct ToggleRecordingIntent: LiveActivityIntent {
|
||||
|
||||
// MARK: Constants
|
||||
|
||||
static let title: LocalizedStringResource = "Pause or Resume Recording"
|
||||
static let description = IntentDescription("Pauses or resumes the ongoing recording.")
|
||||
/// 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.toggle-recording.title"
|
||||
/// The localized description of the intent, resolved from the widget target's string catalog.
|
||||
static let description = IntentDescription("intent.toggle-recording.description")
|
||||
/// Whether running the intent brings the app to the foreground; kept `false` so the button acts straight from the Live Activity,
|
||||
/// in the app's background process, without opening the app.
|
||||
static let openAppWhenRun = false
|
||||
|
||||
// MARK: Methods
|
||||
|
||||
Reference in New Issue
Block a user