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

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

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
BackBoardServices.framework: Difference between revisions - iPhone Development Wiki

BackBoardServices.framework: Difference between revisions

From iPhone Development Wiki
(linking backboardd)
(linking SpringBoard)
Line 4: Line 4:
}}
}}


'''BackBoardServices''' is a framework that was introduced in iOS 6.0. It communicates with the [[backboardd]] daemon that now does a lot of tasks that SpringBoard used to do. One can launch apps, kill apps, set backlight level, etc with that framework.
'''BackBoardServices''' is a framework that was introduced in iOS 6.0. It communicates with the [[backboardd]] daemon that now does a lot of tasks that [[SpringBoard]] used to do. One can launch apps, kill apps, set backlight level, etc with that framework.


== Killing an application ==
== Killing an application ==

Revision as of 00:01, 7 October 2013

BackBoardServices.framework
Private Framework
Availabile 6.0 – present
Headers [headers.cynder.me]


BackBoardServices is a framework that was introduced in iOS 6.0. It communicates with the backboardd daemon that now does a lot of tasks that SpringBoard used to do. One can launch apps, kill apps, set backlight level, etc with that framework.

Killing an application

Replace com.apple.mobilesafari with the application's bundle identifier.

extern "C" void BKSTerminateApplicationForReasonAndReportWithDescription(NSString *app, int a, int b, NSString *description);
...
BKSTerminateApplicationForReasonAndReportWithDescription(@"com.apple.mobilesafari", 5, 0, NULL);

The last two arguments are used for the description, where the first is an unknown integer (use 1), and the second is your reason. These two arguments are not compulsory, but are followed by good practice.

BKSTerminateApplicationForReasonAndReportWithDescription(@"com.apple.mobilesafari", 5, 1, @"Killed because X.");

Killing all applications

Again, it is not mandatory to specify a description but it is a good thing to consider doing.

extern "C" void BKSTerminateApplicationGroupForReasonAndReportWithDescription(int a, int b, int c, NSString *description);
...
BKSTerminateApplicationGroupForReasonAndReportWithDescription(1, 5, 21, @"Kill ALL the apps!");

Setting Backlight Level

The factor should be a number from 0.0 to 1.0, inclusive.

extern "C" void BKSHIDServicesSetBacklightFactorWithFadeDuration(float factor, int duration);
...
BKSHIDServicesSetBacklightFactorWithFadeDuration(0.5, 0);