//library/com.uploadcare.android.library.api/UploadcareClient/createWebhookAsync
createWebhookAsync
[androidJvm]
Content
fun createWebhookAsync(context: Context, targetUrl: URI, event: String, isActive: Boolean = true, callback: UploadcareWebhookCallback)
More info
Create and subscribe to webhook Asynchronously.
Parameters
androidJvm
| Name | Summary |
|---|---|
| callback | callback UploadcareWebhookCallback with either a response with UploadcareWebhook or a failure exception. |
| context | Application context. android.content.Context |
| event | An event you subscribe to. Only “file.uploaded” event supported. |
| isActive | Marks a subscription as either active or not. Default value is {@code true}. |
| targetUrl | A URL that is triggered by an event. |