pub struct UpdateLiveActivityRequest {
pub name: String,
pub event: EventType,
pub event_updates: Value,
pub contents: Option<Box<LanguageStringMap>>,
pub headings: Option<Box<LanguageStringMap>>,
pub sound: Option<String>,
pub stale_date: Option<i32>,
pub dismissal_date: Option<i32>,
pub priority: Option<i32>,
}Fields§
§name: StringAn internal name to assist with your campaign organization. This does not get displayed in the message itself.
event: EventType§event_updates: ValueThis must match the ContentState interface you have defined within your Live Activity in your app.
contents: Option<Box<LanguageStringMap>>§headings: Option<Box<LanguageStringMap>>§sound: Option<String>Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification.
stale_date: Option<i32>Accepts Unix timestamp in seconds. When time reaches the configured stale date, the system considers the Live Activity out of date, and the ActivityState of the Live Activity changes to ActivityState.stale.
dismissal_date: Option<i32>Accepts Unix timestamp in seconds; only allowed if event is "end"
priority: Option<i32>Delivery priority through the the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user’s device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery.
Implementations§
Trait Implementations§
Source§impl Clone for UpdateLiveActivityRequest
impl Clone for UpdateLiveActivityRequest
Source§fn clone(&self) -> UpdateLiveActivityRequest
fn clone(&self) -> UpdateLiveActivityRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more