# Ketai camnera class: use of setZoom(), getZoom() and flashenabled() nethods

**URL:** <https://discourse.processing.org/t/ketai-camnera-class-use-of-setzoom-getzoom-and-flashenabled-nethods/31012>\
**Category:** Processing for Android\
**Created:** [July 2, 2021, 10:01am UTC](https://discourse.processing.org/t/ketai-camnera-class-use-of-setzoom-getzoom-and-flashenabled-nethods/31012 "2021-07-02T10:01:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![katesfb](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@katesfb](https://discourse.processing.org/u/katesfb)\
**Post date:** [July 2, 2021, 10:01am UTC](https://discourse.processing.org/t/ketai-camnera-class-use-of-setzoom-getzoom-and-flashenabled-nethods/31012/1 "2021-07-02T10:01:21Z")

</div>

Hi i am trying to find some information on the use of the getZoom() and setZoom() methods of the ketai camera class. I couldn’t find much info on the [katai.org](http://katai.org) website. For example some usage code.

Also with reference to the use of the LED flash unit as a torch, as i understand it the LED flash can only be used as a flash unit for the camera. Is this correct? Does this mean that the method cam.flashenabled() can not be used if the cam.start() method has not been invoked first?

Is there a way to use the android device torch function programmatically.

Any help is much appreciated.

Cheers.

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [July 2, 2021, 1:44pm UTC](https://discourse.processing.org/t/ketai-camnera-class-use-of-setzoom-getzoom-and-flashenabled-nethods/31012/2 "2021-07-02T13:44:36Z")

</div>

Here is the ref for ketai  
[http://ketai.org/reference/camera/ketaicamera/](http://ketai.org/reference/camera/ketaicamera/)

And it does indeed seem the flash functionality isnt available without some camera instance as all the following examples require this.

> <https://stackoverflow.com/questions/7005001/how-to-turn-on-the-android-flashlight/25097863#25097863>

> <https://stackoverflow.com/questions/28892705/turn-on-off-camera-flashlight-on-android>

> <https://stackoverflow.com/questions/6068803/how-to-turn-on-front-flash-light-programmatically-in-android>

> <https://github.com/EmmanuelPil/Android-java-code-utilities-widgets-for-Processing-for-Android/blob/master/Flash%20light>
