pub unsafe trait MEMessageDecoder: NSObjectProtocol {
// Provided method
unsafe fn decodedMessageForMessageData(
&self,
data: &NSData,
) -> Option<Retained<MEDecodedMessage>>
where Self: Sized + Message { ... }
}Available on crate feature
MEMessageDecoder only.Expand description
Methods in this protocol can be used by a mail app extension to decode messages.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn decodedMessageForMessageData(
&self,
data: &NSData,
) -> Option<Retained<MEDecodedMessage>>
Available on crate feature MEDecodedMessage only.
unsafe fn decodedMessageForMessageData( &self, data: &NSData, ) -> Option<Retained<MEDecodedMessage>>
MEDecodedMessage only.This is invoked while a message is being decoded. The returned value should be an
MEDecodedMessageif the extension is needed for decoding the message. The returned
MEDecodedMessageshould be created with unencrypted MIME data. The
MEMessageSecurityInformationproperty on the
MEDecodedMessageshould contain any signing or encryption information about the decoded message. If the extension is not needed for decoding the message it should return quickly with
nil.
Parameter data: - The original data for the message.