Real newbie - iPhone light sensor

Hi all,
recently I’ve risked to lose my nearly 30 year job so I’m trying to learn programming.
I’m currently learning Xojo but I’m a real newbie.
I would like to know if there’s a way to access the iPhone light sensor and measure the lux value as I remember doing in Xcode.
Thanks for any answer

it would only be able to do via declares to add functionality that Xojo doesn’t expose directly.

[quote=442950:@Stefano Ballirano]Hi all,
recently I’ve risked to lose my nearly 30 year job so I’m trying to learn programming.
I’m currently learning Xojo but I’m a real newbie.
I would like to know if there’s a way to access the iPhone light sensor and measure the lux value as I remember doing in Xcode.
Thanks for any answer[/quote]
If you can post the Obj-C or Swift code, someone might be able to give you some guidance.

I would have suggested that, yet I get chastised everytime I try to offer a solution in a similar manner

Thanks for the quick answers but sorry to have wasted your time. I was wrong, I did interact with the screen brightness not with the light sensor. I’ve looked up the solution and it’s way up my current level, so better to do more learning before jump in matters so difficult.
Thanks again Greg and Dave