# Differentiate End and Leave meeting callbacks

**URL:** <https://devforum.zoom.us/t/differentiate-end-and-leave-meeting-callbacks/21314>\
**Category:** Android\
**Created:** [June 14, 2020, 9:24am UTC](https://devforum.zoom.us/t/differentiate-end-and-leave-meeting-callbacks/21314 "2020-06-14T09:24:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![codelogicapp](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/codelogicapp/32/9045_2.png) [@codelogicapp](https://devforum.zoom.us/u/codelogicapp)\
**Post date:** [June 14, 2020, 9:24am UTC](https://devforum.zoom.us/t/differentiate-end-and-leave-meeting-callbacks/21314/1 "2020-06-14T09:24:09Z")

</div>

I need to differentiate whether the host has ended meeting or just left the meeting.  
I tried implementing following callbacks, but the values returned by both these functions are the same in the event of both end and leave meeting. :

@Override  
public void onMeetingLeaveComplete(long l) {  
}

```
@Override
public void onMeetingStatusChanged(MeetingStatus meetingStatus, int i, int i1) {
  
}
```

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 17, 2020, 5:30am UTC](https://devforum.zoom.us/t/differentiate-end-and-leave-meeting-callbacks/21314/2 "2020-06-17T05:30:38Z")

</div>

Hi @codelogicapp,

Thanks for the post. The host ends or leaves the meeting are 2 separate actions. If the host leaves the meeting, it will trigger the listener `onMeetingUserLeave` and the listener `onMeetingHostChanged`. If the host ends the meeting, then the listener `onMeetingLeaveComplete` will be triggered. The callback mentioned above are in [https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingServiceListener.html](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingServiceListener.html).

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:05pm UTC](https://devforum.zoom.us/t/differentiate-end-and-leave-meeting-callbacks/21314/3 "2020-08-21T22:05:18Z")

</div>

Closed on August 21, 2020, 10:05pm UTC


