CLUMailHelper
@interface CLUMailHelper : NSObject
CLUMailHelper
is class responsible for mail sending process. Set mail subject, add .clue report zip file in attachment and show mail compose modal view for specific viewController
-
Create new instance of
CLUMailHelper
with configured options (which contains email whereCLUMailHelper
will send mail with .clue report)Declaration
Objective-C
- (instancetype)initWithOption:(CLUOptions *)option;
Swift
init!(option: Any!)
Parameters
option
CLUOptions
object which contains email property whereCLUMailHelper
will send mail with .clue report. Get this options from first Clue Controller configurationReturn Value
CLUMailHelper
instance with configure options -
Show mail composer modal view for specific view controller
Declaration
Objective-C
- (void)showMailComposeWindowWithViewController: (UIViewController *)viewController;
Swift
func showMailComposeWindow(with viewController: UIViewController!)
Parameters
viewController
UIViewController
whereCLUMailHelper
will show mail composer modal view -
Set
MFMailComposeViewControllerDelegate
delegate objectDeclaration
Objective-C
- (void)setMailDelegate:(id<MFMailComposeViewControllerDelegate>)delegate;
Swift
func setMailDelegate(_ delegate: MFMailComposeViewControllerDelegate!)
Parameters
delegate
MFMailComposeViewControllerDelegate
delegate object to handle responses/events from mail composer view