# How can I add different actions for both End and Leave button triggers?

**URL:** <https://devforum.zoom.us/t/how-can-i-add-different-actions-for-both-end-and-leave-button-triggers/137009>\
**Category:** Video SDK\
**Created:** [September 1, 2025, 5:24am UTC](https://devforum.zoom.us/t/how-can-i-add-different-actions-for-both-end-and-leave-button-triggers/137009 "2025-09-01T05:24:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dereje](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dereje/32/71021_2.png) [@Dereje](https://devforum.zoom.us/u/Dereje)\
**Post date:** [September 1, 2025, 5:24am UTC](https://devforum.zoom.us/t/how-can-i-add-different-actions-for-both-end-and-leave-button-triggers/137009/1 "2025-09-01T05:24:18Z")

</div>

Dear,

I utilized Zoom Video SDK Toolkit for custom video application. In example code for closing an event there is only one call for both End & Leave video call, that’s

uitoolkit.onSessionClosed(this.sessionClosed)

My application need to have separate actions for both End and Leave button triggers. can you help me
