Trait IUNNotificationAttachment

Source
pub trait IUNNotificationAttachment: PNSObject {
    // Provided methods
    fn m_attachment_with_identifier_url_options(
        identifier: NSString,
        url: NSURL,
        options: NSDictionary<id, id>,
    ) -> Result<Self, NSError>
       where Self: Sized + FromId { ... }
    fn p_identifier(&self) -> NSString { ... }
    fn p_url(&self) -> NSURL { ... }
    fn p__type(&self) -> NSString { ... }
}
Expand description

A trait containing all the methods for UNNotificationAttachment

Provided Methods§

Source

fn m_attachment_with_identifier_url_options( identifier: NSString, url: NSURL, options: NSDictionary<id, id>, ) -> Result<Self, NSError>
where Self: Sized + FromId,

Creates an attachment object from the specified file and options.

Source

fn p_identifier(&self) -> NSString

The unique identifier for the attachment.

Source

fn p_url(&self) -> NSURL

The URL of the file for this attachment.

Source

fn p__type(&self) -> NSString

The UTI type of the attachment.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§