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
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.

How could I use SENSOR_TYPE_ORIENTATION to get orientation angle?

Purpose: Using SENSOR_TYPE_ORIENTATION gets orientation angle.

 

Problem: I could not find any sample code for SENSOR_TYPE_ORIENTATION.

 

Question: How could I use SENSOR_TYPE_ORIENTATION to get orientation angle?

                   If the function is developing now, just let us know.

 

Minimum currrent code to get orientation angle

int angle = navigator_event_get_orientation_angle(event).

the anlge shows 0, 90, 180, 270.

 

Thanks your attention.

 

-Fight with BB10
Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB

Re: How could I use SENSOR_TYPE_ORIENTATION to get orientation angle?

Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.

Re: How could I use SENSOR_TYPE_ORIENTATION to get orientation angle?

I read it, but not any description SENSOR_TYPE_ORIENTATION instead of naviagtor_angle.

 

I guess the SENSOR_TYPE_ORIENTATION is developing now.

 

 

 

-Fight with BB10
Please use plain text.