FUIAddPhotoAttachmentAction

public class FUIAddPhotoAttachmentAction :  FUIAttachmentAction

This class is an implementation of FUIAttachmentAction to allow user to choose a photo from photo library as an attachment in FUIAttachmentsFormView.

  • The title string to be displayed for this action.

    Declaration

    Swift

    public let title: String
  • An implementation of FUIAddPhotoAttachmentActionDelegate.

    Declaration

    Swift

    public weak var delegate: FUIAddPhotoAttachmentActionDelegate?
  • Returns a newly initialized FUIAddPhotoAttachmentAction.

    Declaration

    Swift

    public init(withTitle title: String = defaultTitle)

    Parameters

    title

    The title string for this action. If this is not specified, the default title “Photo Library” will be used.

  • A photo picker will be displayed to allow user to choose a photo as an attachment.

    Declaration

    Swift

    public func action(onController controller: FUIAttachmentsViewController)

    Parameters

    controller

    The FUIAttachmentsFormViewController.

  • Check if photo library is available or not.

    Declaration

    Swift

    public func isAvailable() -> Bool

    Return Value

    True if photo library is available.