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 where CLUMailHelper 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 where CLUMailHelper will send mail with .clue report. Get this options from first Clue Controller configuration

    Return 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 where CLUMailHelper will show mail composer modal view

  • Set MFMailComposeViewControllerDelegate delegate object

    Declaration

    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