# isUserSpotlighted function doesn't work

**URL:** <https://devforum.zoom.us/t/isuserspotlighted-function-doesnt-work/59891>\
**Category:** iOS\
**Created:** [November 7, 2021, 4:20pm UTC](https://devforum.zoom.us/t/isuserspotlighted-function-doesnt-work/59891 "2021-11-07T16:20:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmytro](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dmytro/32/1371_2.png) [@dmytro](https://devforum.zoom.us/u/dmytro)\
**Post date:** [November 7, 2021, 4:20pm UTC](https://devforum.zoom.us/t/isuserspotlighted-function-doesnt-work/59891/1 "2021-11-07T16:20:34Z")

</div>

**Description**  
`isUserSpotlighted` function returns `false` for a spotlighted user.

**Which iOS Meeting SDK version?**  
iOS SDK 5.7.6.1080 (Latest)

**To Reproduce**

1. Create a meeting in Zoom app
2. Connect with user A to the meeting via Zoom app
3. Connect with user B to the meeting via iOS SDK (Custom UI)
4. Spotlight user A

**Actual Result:**  
Calling `isUserSpotlighted` with spotlighted user id returns false

**Expected Result:**  
Calling `isUserSpotlighted` with spotlighted user id should return true

**Additional context**  
Callback `- (void)onSpotlightVideoChange:(BOOL)on;` is called when a user get spotlighted.

According to the documentation

> **@warning** The function is only for Zoom UI.

Doesn’t it mean that its expected that `isUserSpotlighted` function is not working for Custom UI? Is there any other API to detect if a user is spotlighted?

Thank you!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [November 9, 2021, 6:22pm UTC](https://devforum.zoom.us/t/isuserspotlighted-function-doesnt-work/59891/2 "2021-11-09T18:22:19Z")

</div>

Hey @dmytro,

Thanks for using the dev forum!

The spotlighting interfaces are not supported in custom UI, so they will always return false.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![janTatang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jantatang/32/33803_2.png) [@janTatang](https://devforum.zoom.us/u/janTatang)\
**Post date:** [December 7, 2021, 3:27am UTC](https://devforum.zoom.us/t/isuserspotlighted-function-doesnt-work/59891/3 "2021-12-07T03:27:46Z")

</div>

so, is there any other ways to get ID of spotlight users? thank you

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 7, 2021, 10:38pm UTC](https://devforum.zoom.us/t/isuserspotlighted-function-doesnt-work/59891/4 "2021-12-07T22:38:33Z")

</div>

Hi @janTatang,

The `isUserSpotlighted` method and `onSpotlightVideoChange` callback mentioned earlier in this topic are currently the only ways to obtain information about spotlit users. Is there something in your use case that these do not work for?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 7, 2022, 8:38am UTC](https://devforum.zoom.us/t/isuserspotlighted-function-doesnt-work/59891/5 "2022-01-07T08:38:52Z")

</div>

Closed on January 7, 2022, 8:38am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
