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
This action requires camera usage permission from user.
isSavedToCameraRoll property is
true, the photo library usage permission is also required.
The title string to be displayed for this action.
public let title: String
An implementation of
public weak var delegate: FUITakePhotoAttachmentActionDelegate?
Indicates if the photo taken should be saved to the camera roll or not. If this is
false, developers need to manage the returned photo images.
The default is
public var isSavedToCameraRoll: Bool
Returns a newly initialized
public init(withTitle title: String? = nil)
The title string for this action. If this is not specified, the default title
Take Photowill be used.
A camera view will be shown for user to take a photo as attachment.
public func action(onController controller: FUIAttachmentsViewController)
Check if camera is supported and its usage permission has not been denied.
public func isAvailable(_ alertAction: UIAlertAction) -> Bool
True if camera is available and its usage permission has not been denied.