Welcome!

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

Reply
Developer
Posts: 1,627
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Holster Sensor. Anybody got it working?

Trying to catch when the device is in the holster.

 

I'm using the QHolsterSensor control in the QML and the app crashes when launching.

 

There are no examples and detail docs on QHolsterSensor and I can find.

 

Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Holster Sensor. Anybody got it working?

I haven't ever used it but just checked into the docs, did you try setting up a sensor filter and then tried to get the holster sensor information

 

https://developer.blackberry.com/native/reference/cascades/qsensorfilter.html