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
CLUMailHelperwith configured options (which contains email whereCLUMailHelperwill send mail with .clue report)Declaration
Objective-C
- (instancetype)initWithOption:(CLUOptions *)option;Swift
init!(option: Any!)Parameters
optionCLUOptionsobject which contains email property whereCLUMailHelperwill send mail with .clue report. Get this options from first Clue Controller configurationReturn Value
CLUMailHelperinstance 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
viewControllerUIViewControllerwhereCLUMailHelperwill show mail composer modal view -
Set
MFMailComposeViewControllerDelegatedelegate objectDeclaration
Objective-C
- (void)setMailDelegate:(id<MFMailComposeViewControllerDelegate>)delegate;Swift
func setMailDelegate(_ delegate: MFMailComposeViewControllerDelegate!)Parameters
delegateMFMailComposeViewControllerDelegatedelegate object to handle responses/events from mail composer view
CLUMailHelper Class Reference