Event Deletion

Pre-requisite: The user has to be signed in to perform the following operations.


Delete Events

To delete events, The following method can be used:

  • event (required): The event object to be deleted.
InstaVision.eventServices.deleteEvent(
  event = event, // The event object to be deleted
  onSuccess = {
    // Event deleted successfully
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Get User Deleted Events

To get the list of deleted events, The following method can be used:

  • spaceId (required): The space id for which the deleted events are to be fetched.
InstaVision.eventServices.getUserDeletedEvents(
  spaceId = spaceId, // The space id for which the deleted events are to be fetched
  onSuccess = { deletedEvents ->
    // The list of deleted events
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)