FUITakePhotoAttachmentAction

public class FUITakePhotoAttachmentAction : FUIAttachmentAction

This class is an implementation of FUIAttachmentAction to allow user to use camera to take a photo as an attachment in FUIAttachmentsFormView.

  • The title string to be displayed for this action.

    Declaration

    Swift

    public let title: String
  • An implementation of FUITakePhotoAttachmentActionDelegate.

    Declaration

    Swift

    public weak var delegate: FUITakePhotoAttachmentActionDelegate?
  • Returns a newly initialized FUITakePhotoAttachmentAction.

    Declaration

    Swift

    public init(withTitle title: String = defaultTitle)

    Parameters

    title

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

  • A camera view will be shown for user to take a photo as attachment.

    Declaration

    Swift

    public func action(onController controller: FUIAttachmentsViewController)

    Parameters

    controller

    The FUIAttachmentsFormViewController.

  • Check if camera is available or not.

    Declaration

    Swift

    public func isAvailable() -> Bool

    Return Value

    True if camera is available.