pub struct AndroidContent {
pub title: String,
pub status: String,
pub presentation: AndroidPresentation,
}Expand description
What Android shows for a snapshot, in Android’s own terms, in place of the projection of the layout: a progress with segments and points, metrics, the text of the status chip, icons of actions, the URL a tap opens, a clock in the header. iOS ignores it.
A content of another notification style than the one the activity shows needs a device that changes styles
(styleChange in the capabilities); on another device it is UNSUPPORTED_FEATURE, and the activity keeps what
it shows. A tap on one of its actions reaches the event sink like a tap on a button node, unless the action
opens a URL.
Fields§
§title: StringThe notification’s title, 1 to 120 characters.
status: StringThe notification’s text, 1 to 240 characters.
presentation: AndroidPresentationThe notification style and what it shows.
Implementations§
Trait Implementations§
Source§impl Clone for AndroidContent
impl Clone for AndroidContent
Source§impl Debug for AndroidContent
impl Debug for AndroidContent
Source§impl<'de> Deserialize<'de> for AndroidContent
impl<'de> Deserialize<'de> for AndroidContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AndroidContent
impl PartialEq for AndroidContent
Source§impl Serialize for AndroidContent
impl Serialize for AndroidContent
impl StructuralPartialEq for AndroidContent
Auto Trait Implementations§
impl Forget for AndroidContent
impl Freeze for AndroidContentwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ProgressSegment>: Freeze,
PhantomData<ProgressPoint>: Freeze,
PhantomData<Metric>: Freeze,
PhantomData<NotificationAction>: Freeze,
impl Move for AndroidContent
impl RefUnwindSafe for AndroidContent
impl Send for AndroidContentwhere
RawVecInner: Send,
impl Sync for AndroidContentwhere
RawVecInner: Sync,
impl Unpin for AndroidContent
impl UnsafeUnpin for AndroidContentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ProgressSegment>: UnsafeUnpin,
PhantomData<ProgressPoint>: UnsafeUnpin,
PhantomData<Metric>: UnsafeUnpin,
PhantomData<NotificationAction>: UnsafeUnpin,
impl UnwindSafe for AndroidContentwhere
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
Mutably borrows from an owned value. Read more