Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
SBBulletinBannerController: Difference between revisions - iPhone Development Wiki

SBBulletinBannerController: Difference between revisions

From iPhone Development Wiki
m (Added navbox)
mNo edit summary
Line 14: Line 14:
[bulletin release];
[bulletin release];
</source>
</source>
== References ==
<references/>


{{occlass|library=SpringBoard.app|navbox=1}}
{{occlass|library=SpringBoard.app|navbox=1}}

Revision as of 14:09, 11 August 2015

SBBulletinBannerController can be used to post notifications to the user from a substrate tweak running inside Springboard.

BBBulletinRequest *bulletin = [[BBBulletinRequest alloc] init];  
bulletin.sectionID =  @"com.application.identifier";  
bulletin.title =  @"Title";  
bulletin.message  = @"Message";  
bulletin.date = [NSDate date];  
SBBulletinBannerController *controller = [%c(SBBulletinBannerController) sharedInstance];
if ([controller respondsToSelector:@selector(observer:addBulletin:forFeed:playLightsAndSirens:withReply:)])
  [controller observer:nil addBulletin:bulletin forFeed:2 playLightsAndSirens:YES withReply:nil]; 
else if ([controller respondsToSelector:@selector(observer:addBulletin:forFeed:)])
  [controller observer:nil addBulletin:bulletin forFeed:2];
[bulletin release];

References