Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Capacitor Camera - Permissions and Events

$
0
0

@PerHoyer wrote:

Hi there.
I have been working with the Capacitor Camera for a while now, and everything works fine, but i would like to read stuff like: Permissions has been changed, camera is active now and stuff like that. In the capacitor docs i can see that i do have an addListener(eventName: string…) but i have no idea to find out what the events that i can listen to is called. or… if there is any?

And Question no 2:
I can see i have a method: Camera.requestPermissions(), and as it is returning i promise… so i need a then but:
Camera.requestPermissions().then(res => console.log(res)); throws a requestPermissions is not a function… what am i doing wrong?

Regards
Per Høyer

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>