FUIAddPhotoAttachmentActionDelegate

public protocol FUIAddPhotoAttachmentActionDelegate : AnyObject

The delegate protocol for FUIAddPhotoAttachmentAction.

  • This function is invoked when a photo is selected from a photo picker on iOS 11 devices.

    Note that PHAsset‘s fetchAssets(withALAssetURLs:options:) API is deprecated in iOS 11. SAPFiori framework provides PHAsset directly to the delegate to access the photo’s PHAsset.

    Declaration

    Swift

    @available(iOS 11.0, *)
    func addPhotoAttachmentAction(_ action: FUIAddPhotoAttachmentAction, didSelectPhoto asset: PHAsset, at url: URL)

    Parameters

    action
    url

    The file URL for the selected photo.

    asset

    The PHAsset for the selected photo.