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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
jaiaca
Posts: 95
Registered: ‎10-06-2012
My Carrier: Rogers
Accepted Solution

SystemToast predefined timeout period

Hello,

 

I'm wondering if anyone knows if it's possible to set the timeout period for a systemToast? At the below link, it mentions a "predefined timeout period"...Is it possible to set this period?

 

https://developer.blackberry.com/cascades/reference/bb__system__systemtoast.html

(The toast will be dismissed after a predefined timeout period lapses....)

 

Thanks

Jason

Jason I. Carter
Follow me @jasonicarter
Built For BlackBerry - WordsPlus & WordsPlus: Free Edition | word search has never had it so good
www.twocasualcoders.com | never casual on quality
Please use plain text.
Regular Contributor
Q-T
Posts: 69
Registered: ‎12-02-2011
My Carrier: none

Re: SystemToast predefined timeout period

Would like to know how to set time out period for Toast Dialog as well
Please use plain text.
BlackBerry Development Advisor
erahnenfuehrer
Posts: 34
Registered: ‎05-25-2012
My Carrier: Bell

Re: SystemToast predefined timeout period

There is currently no way to set the timeout period of a SystemToast.  If this is a feature you would like to see I suggest heading to https://www.blackberry.com/jira and creating a feature request that I can escalate for you.

Please use plain text.
Developer
jaiaca
Posts: 95
Registered: ‎10-06-2012
My Carrier: Rogers

Re: SystemToast predefined timeout period

Thanks for the reply and suggestion. Personally, it's not a big deal for me but I was looking into it for a game I'm creating so it was more of a "just curious" type of question.

Thanks
Jason I. Carter
Follow me @jasonicarter
Built For BlackBerry - WordsPlus & WordsPlus: Free Edition | word search has never had it so good
www.twocasualcoders.com | never casual on quality
Please use plain text.
Regular Contributor
Q-T
Posts: 69
Registered: ‎12-02-2011
My Carrier: none

Re: SystemToast predefined timeout period

Only suggestion is that the documentation should state how to show a button, which is to get handle and then enable it. Kind of obtuse. Perhaps a better way would be to have a method setButtonEnabled(bool). Just my two cents
Please use plain text.
Regular Contributor
ametller
Posts: 54
Registered: ‎07-15-2010

Re: SystemToast predefined timeout period

The predefined time is 3 seconds I think, but keep in mind that if you want a shorter timeout, you can always cancel the toast programmatically before those 3 seconds as a workaround...

Please use plain text.