Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 207
Registered: ‎02-10-2011
My Device: Playbook 16GB and Z10
My Carrier: Verizon

Listen for headphone removal

I have been looking through the Native/Cascades doc's and I am finding mainly in the native docs there being a way to listen for when the media output state changes, but I haven't the slightest clue on how to pull it together to where I have a thread listening for when the state changes, knowing what state its now in (plugged in or removed) and firing a signal.


For example, I think this might be a function I could use, but there are several other functions throughout the doc's that might be what I am looking for.

Go Music
Flashlight Fast Free/Pro
Fitbit for BlackBerry PlayBook