UTMail  1.1
Email Composition and Sending Plugin
Public Member Functions | Static Public Member Functions | Properties | List of all members
UT.MailUtil Class Reference

Various utility functions used by UTMail. More...

Inheritance diagram for UT.MailUtil:

Public Member Functions

void DispatchToMainThread (global::System.Action action)
 Dispatches the action to be executed in the main Unity thread (in LateUpdate stage). More...
 

Static Public Member Functions

static string [] MailAddressCollectionToStrings (MailAddressCollection collection)
 Converts MailAddressCollection to string[]. More...
 
static string StreamToFilePath (Stream stream, string fileName)
 Writes a stream into a temporary file. More...
 
static string AttachmentToFilePath (Attachment attachment)
 Writes an attachment into a temporary file. More...
 
static string [] AttachmentsToFilePaths (AttachmentCollection attachments)
 Writes a collection of attachments into temporary files. More...
 
static void CleanTempAttachmentDirectory ()
 Cleans the temporary attachments directory. More...
 
static void InstanceRequired ()
 Makes sure the only instance of MailUtil exists. More...
 

Properties

static MailUtil Instance [get]
 Returns the only instance of MailUtil. More...
 

Detailed Description

Various utility functions used by UTMail.

Member Function Documentation

◆ AttachmentsToFilePaths()

static string [] UT.MailUtil.AttachmentsToFilePaths ( AttachmentCollection  attachments)
static

Writes a collection of attachments into temporary files.

◆ AttachmentToFilePath()

static string UT.MailUtil.AttachmentToFilePath ( Attachment  attachment)
static

Writes an attachment into a temporary file.

◆ CleanTempAttachmentDirectory()

static void UT.MailUtil.CleanTempAttachmentDirectory ( )
static

Cleans the temporary attachments directory.

◆ DispatchToMainThread()

void UT.MailUtil.DispatchToMainThread ( global::System.Action  action)

Dispatches the action to be executed in the main Unity thread (in LateUpdate stage).

◆ InstanceRequired()

static void UT.MailUtil.InstanceRequired ( )
static

Makes sure the only instance of MailUtil exists.

◆ MailAddressCollectionToStrings()

static string [] UT.MailUtil.MailAddressCollectionToStrings ( MailAddressCollection  collection)
static

Converts MailAddressCollection to string[].

◆ StreamToFilePath()

static string UT.MailUtil.StreamToFilePath ( Stream  stream,
string  fileName 
)
static

Writes a stream into a temporary file.

Property Documentation

◆ Instance

MailUtil UT.MailUtil.Instance
staticget

Returns the only instance of MailUtil.


The documentation for this class was generated from the following file: