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
‘sfetchAssets(withALAssetURLs:options:)
API is deprecated in iOS 11.SAPFiori
framework providesPHAsset
directly to the delegate to access the photo’sPHAsset
.Declaration
Swift
@available(iOS 11.0, *) func addPhotoAttachmentAction(_ action: FUIAddPhotoAttachmentAction, didSelectPhoto asset: PHAsset, at url: URL)
Parameters
action
The
FUIAddPhotoAttachmentAction
object.url
The file URL for the selected photo.
asset
The
PHAsset
for the selected photo.
-
addPhotoAttachmentAction(_:didSelectPhotoAt:)
Extension methodUndocumented
Declaration
Swift
func addPhotoAttachmentAction(_ action: FUIAddPhotoAttachmentAction, didSelectPhotoAt url: URL)