pub struct NotificationAction {
pub id: String,
pub title: String,
pub icon: Option<IconSource>,
pub authentication_required: bool,
pub open_url: Option<String>,
pub target: Option<ActionTarget>,
}Expand description
Android’s notification styles, for the AndroidContent of a snapshot. A TimerStyle takes liveupdate’s
Timer, which is liveactivity::liveupdate::Timer.
One action button delivered back as an crate::ActivityEvent.
Fields§
§id: StringStable caller-owned action identifier.
title: StringSystem-rendered action label.
icon: Option<IconSource>Optional action icon.
authentication_required: boolWhether the person must unlock the device before the action is taken. Android asks from version 12 (API 31). On an older version nothing asks, and the AAR drops a tap of the action while the device is locked.
open_url: Option<String>URL the action opens in the application, instead of queuing an event.
target: Option<ActionTarget>A component of the application that Android delivers the tap to, instead of queuing an
event, where the adapter offers it (PresentationCapabilities::action_targets); never
beside open_url. The component takes the tap with LiveUpdateActions.take, which records
it as an crate::EventKind::Handled event.
Implementations§
Trait Implementations§
Source§impl Clone for NotificationAction
impl Clone for NotificationAction
Source§fn clone(&self) -> NotificationAction
fn clone(&self) -> NotificationAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NotificationAction
impl Debug for NotificationAction
Source§impl<'de> Deserialize<'de> for NotificationAction
impl<'de> Deserialize<'de> for NotificationAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for NotificationAction
Source§impl PartialEq for NotificationAction
impl PartialEq for NotificationAction
Source§impl Serialize for NotificationAction
impl Serialize for NotificationAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for NotificationAction
Auto Trait Implementations§
impl Forget for NotificationAction
impl Freeze for NotificationAction
impl Move for NotificationAction
impl RefUnwindSafe for NotificationAction
impl Send for NotificationActionwhere
RawVecInner: Send,
impl Sync for NotificationActionwhere
RawVecInner: Sync,
impl Unpin for NotificationAction
impl UnsafeUnpin for NotificationAction
impl UnwindSafe for NotificationActionwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.