Is there a way to get the profile in a javascript widget

1
I would like to know in a widget whether the user is on hybrid mobile online or offline. I would imagine that somewhere in the javascript there must be a function to tell me what device profile i am on right?    
asked
1 answers
4

These should cover your needs:

mx.ui.getProfile()
mx.isOffline()
answered