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
soulgen
Posts: 44
Registered: ‎02-11-2013
My Device: Z10
My Carrier: TELE2

Bedside mode

Hi all,

Is there any public API for enable/disable bedside mode? If it is not, please suggest how to disable/enable incoming calls.

Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Bedside mode

AFAIK this is not available, it would be in HomeScreen if it was.

 

Suggestions (but not very satisfactory ones) for incoming calls,

 

- Disable the radios

- Turn off the volume

 

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
BlackBerry Development Advisor (Retired)
garydev
Posts: 83
Registered: ‎10-10-2012
My Device: Z30
My Carrier: Bell

Re: Bedside mode

Correct - no API.

 

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

 

>If it is not, please suggest how to disable/enable incoming calls.

 

What are you trying to achieve?  Turning off calls during a specific time (ie 11pm-6am) ?

Are there other scenarios too?  For example, if you had 'vibrate' set when email arrive? (or a chime) - would you want that disabled during a certain time?

 

-gary

Please use plain text.
Developer
soulgen
Posts: 44
Registered: ‎02-11-2013
My Device: Z10
My Carrier: TELE2

Re: Bedside mode

Yes, I want to turning of calls during at specific time. Probably NotificationGlobalSettings can help me. But I also want to disable wi-fi during at specific time. But I realized that wifi_set_sta_power(false) doesn't work, and wifi_set_sta_power(true) works well. I can't understand why???
Please use plain text.
Developer
stardomains
Posts: 181
Registered: ‎12-14-2009
My Device: Not Specified

Re: Bedside mode


soulgen wrote:
Yes, I want to turning of calls during at specific time. Probably NotificationGlobalSettings can help me. But I also want to disable wi-fi during at specific time. But I realized that wifi_set_sta_power(false) doesn't work, and wifi_set_sta_power(true) works well. I can't understand why???

http://supportforums.blackberry.com/t5/Native-Development/Can-we-programatically-off-wifi-in-bb-10/m...

 

Can you open https://www.blackberry.com/jira/browse/BBTEN-538

 

and see if there has been any action on it? My browsers cannot open that site for some reason. I'm on a mac and all browser will not open that website.

Please use plain text.