Interface UnwrapWebhookEvent.Visitor

    • Constructor Detail

    • Method Detail

      • visitVideoTransformationAccepted

         abstract T visitVideoTransformationAccepted(VideoTransformationAcceptedEvent videoTransformationAccepted)

        Triggered when a new video transformation request is accepted for processing. This event confirms that ImageKit has received and queued your transformation request. Use this for debugging and tracking transformation lifecycle.

      • visitVideoTransformationReady

         abstract T visitVideoTransformationReady(VideoTransformationReadyEvent videoTransformationReady)

        Triggered when video encoding is finished and the transformed resource is ready to be served. This is the key event to listen for - update your database or CMS flags when you receive this so your application can start showing the transformed video to users.

      • visitVideoTransformationError

         abstract T visitVideoTransformationError(VideoTransformationErrorEvent videoTransformationError)

        Triggered when an error occurs during video encoding. Listen to this webhook to log error reasons and debug issues. Check your origin and URL endpoint settings if the reason is related to download failure. For other errors, contact ImageKit support.

      • visitUploadPostTransformSuccess

         abstract T visitUploadPostTransformSuccess(UploadPostTransformSuccessEvent uploadPostTransformSuccess)

        Triggered when a post-transformation completes successfully. The transformed version of the file is now ready and can be accessed via the provided URL. Note that each post-transformation generates a separate webhook event.

      • visitFolderCreated

         abstract T visitFolderCreated(FolderCreateEvent folderCreated)

        Triggered when a folder is created, whether explicitly, by copying or moving a folder, or implicitly when an upload creates missing parent folders. Copying or moving a folder tree sends one event per folder in the tree.

      • visitFolderUpdated

         abstract T visitFolderUpdated(FolderUpdateEvent folderUpdated)

        Triggered when a folder is updated, for example when its custom metadata changes or it is renamed. Renaming a folder sends one event per folder in the tree, each with its new folderPath.

      • visitFolderDeleted

         abstract T visitFolderDeleted(FolderDeleteEvent folderDeleted)

        Triggered when a folder is deleted. Deleting a folder tree sends one event per folder in the tree; the files inside it send file.deleted events and their versions send file-version.deleted events. Moving a folder sends this event for the old folderId and folder.created for the new one.

      • unknown

         T unknown(JsonValue json)

        Maps an unknown variant of UnwrapWebhookEvent to a value of type T.

        An instance of UnwrapWebhookEvent can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.