Package apple.photosui.protocol
Interface PHContentEditingController
-
public interface PHContentEditingControllerProtocol to which the principal view controller of the extension must conform. API-Since: 8.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePHContentEditingController.Block_finishContentEditingWithCompletionHandler
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelContentEditing()Called if the user cancels the editing session.booleancanHandleAdjustmentData(@NotNull PHAdjustmentData adjustmentData)Query whether the receiver can handle (i.e.voidfinishContentEditingWithCompletionHandler(@NotNull PHContentEditingController.Block_finishContentEditingWithCompletionHandler completionHandler)Called when the user finishes the editing session.booleanshouldShowCancelConfirmation()Returns whether the user should be prompted when canceling the editing session.voidstartContentEditingWithInputPlaceholderImage(@NotNull PHContentEditingInput contentEditingInput, @NotNull UIImage placeholderImage)API-Since: 8.0
-
-
-
Method Detail
-
canHandleAdjustmentData
boolean canHandleAdjustmentData(@NotNull @NotNull PHAdjustmentData adjustmentData)Query whether the receiver can handle (i.e. can decode and render) the given adjustment data. API-Since: 8.0
-
cancelContentEditing
void cancelContentEditing()
Called if the user cancels the editing session. (Can be called while the receiver is producing the editing output.) API-Since: 8.0
-
finishContentEditingWithCompletionHandler
void finishContentEditingWithCompletionHandler(@NotNull @NotNull PHContentEditingController.Block_finishContentEditingWithCompletionHandler completionHandler)Called when the user finishes the editing session. The receiver should prevent the user from editing the asset further. Also, it should create the editing output and call the completion handler. The completion handler returns after the output has been consumed, so it is safe to perform clean up after it returns. The completion handler can (and should best) be called on a background queue. API-Since: 8.0
-
shouldShowCancelConfirmation
boolean shouldShowCancelConfirmation()
Returns whether the user should be prompted when canceling the editing session. API-Since: 8.0
-
startContentEditingWithInputPlaceholderImage
void startContentEditingWithInputPlaceholderImage(@NotNull @NotNull PHContentEditingInput contentEditingInput, @NotNull @NotNull UIImage placeholderImage)API-Since: 8.0
-
-