1 Attachment(s)
Global notification profiles based on device orientation.
Hey guys, I'm totally new to development and coding in general, but after playing with 10.3 on my Z10, specifically the flip to mute feature, I realized that I'd love to be able to customize this option. I'd like to be able to set the Global Notifications to any of the options, normal, silent, vibrate, depending on the device orientation, not just flipping it over. After searching BlackBerry World, I found FlipShush, but it only duplicates the built in functionality in 10.3, and doesn't give options for which profile is activated.
So here I am, learning BB10 development to build this app. Only problem is, I'm in way over my head. Most of the tutorials are UI based, and there aren't many how-to videos or articles on using the sensor data that don't read like an advanced class in app development. I found one of the sample apps, Sensors: Orientation, that handles the sensor triggering, but it's setup to display text (face up, face down, top down), and I don't know how to tell it to change the notification profile instead of just showing text. I've attached a screenshot of the Main.qml file showing how it's setup, but it looks too easy, and I'm not sure how to execute actions.
Attachment 299896
Sorry for the long read, but the short version is, what is the proper way to execute changing the global notification profile?
Thanks for any insight you guys can offer. :)