mNo edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
[[SpringBoardServices.framework]] is a C (and partially Objective-C) library that allows you to invoke functions in the [[SpringBoard.app|SpringBoard]] via IPC (Mach messages). | [[SpringBoardServices.framework]] is a C (and partially Objective-C) library that allows you to invoke functions in the [[SpringBoard.app|SpringBoard]] via IPC (Mach messages). | ||
{{ | SpringBoardServices is a framework that is constantly changing. Almost every firmware has something different. Make sure you check the version if you use any function here. | ||
<!-- Maybe split it out? --> | |||
== SB functions == | |||
SB functions are the low-level functions that directly communicate with SpringBoard. | |||
=== SBGetPublicURLSchemes === | |||
{{Function signature|signature=void SBSCopyPublicURLSchemes(mach_port_t port, char** dataBytes, unsigned* length);|firmware=3.0 – 3.1}} | |||
See [[#SBSCopyPublicURLSchemes|SBSCopyPublicURLSchemes]]. | |||
=== SBShowCompassCalibrationHUD === | |||
{{Function signature|signature=void SBShowCompassCalibrationHUD(mach_port_t port, mach_port_t port2);|firmware=3.0 – 3.1}} | |||
See [[#SBSCreateCompassCalibrationHUDAssertion|SBSCreateCompassCalibrationHUDAssertion]]. | |||
== SBS functions == | |||
SBS functions are often a higher-level abstraction on top of SB functions. A typical feature is they do not require the ''port'' parameter. | |||
=== SBSSpringBoardServerPort === | |||
{{Function signature|signature=mach_port_t SBSSpringBoardServerPort();|firmware=2.0 – 3.1}} | |||
Get the Mach port (send right) that can communicate with the SpringBoard. The return value can be used in the SB functions. | |||
=== SBSCopyPublicURLSchemes === | |||
{{Function signature|signature=CFArrayRef SBSCopyPublicURLSchemes();|firmware=3.0 – 3.1}} | |||
Obtain an array of public URL schemes. (e.g. <tt>(http, https, ...)</tt>) | |||
=== SBSCreateCompassCalibrationHUDAssertion === | |||
{{Function signature|signature=CFMachPortRef SBSCreateCompassCalibrationHUDAssertion();|firmware=3.0 – 3.1}} | |||
Show the "Compass Interference" HUD. | |||
{{Navbox Frameworks}} | {{Navbox Frameworks}} |
Revision as of 20:41, 12 October 2009
SpringBoardServices.framework | |
Private Framework | |
---|---|
Availabile | ? – present |
Class Prefix | SB / SBS |
Headers | [headers.cynder.me] |
SpringBoardServices.framework is a C (and partially Objective-C) library that allows you to invoke functions in the SpringBoard via IPC (Mach messages).
SpringBoardServices is a framework that is constantly changing. Almost every firmware has something different. Make sure you check the version if you use any function here.
SB functions
SB functions are the low-level functions that directly communicate with SpringBoard.
SBGetPublicURLSchemes
Signature | void SBSCopyPublicURLSchemes(mach_port_t port, char** dataBytes, unsigned* length); |
---|---|
Available in | 3.0 – 3.1 |
SBShowCompassCalibrationHUD
Signature | void SBShowCompassCalibrationHUD(mach_port_t port, mach_port_t port2); |
---|---|
Available in | 3.0 – 3.1 |
SBS functions
SBS functions are often a higher-level abstraction on top of SB functions. A typical feature is they do not require the port parameter.
SBSSpringBoardServerPort
Signature | mach_port_t SBSSpringBoardServerPort(); |
---|---|
Available in | 2.0 – 3.1 |
Get the Mach port (send right) that can communicate with the SpringBoard. The return value can be used in the SB functions.
SBSCopyPublicURLSchemes
Signature | CFArrayRef SBSCopyPublicURLSchemes(); |
---|---|
Available in | 3.0 – 3.1 |
Obtain an array of public URL schemes. (e.g. (http, https, ...))
SBSCreateCompassCalibrationHUDAssertion
Signature | CFMachPortRef SBSCreateCompassCalibrationHUDAssertion(); |
---|---|
Available in | 3.0 – 3.1 |
Show the "Compass Interference" HUD.