m (Formatting.) |
(SBSRelaunchAction example.) |
||
Line 15: | Line 15: | ||
}} | }} | ||
This method can send appropriate system-related actions. For | This method can send appropriate system-related actions. For examples, [[SBSRestartRenderServerAction]] and [[SBSRelaunchAction]] actions. | ||
= Relaunch SpringBoard with relaunch URL = | = Relaunch SpringBoard with relaunch URL = | ||
Line 22: | Line 22: | ||
// Also link FrontBoardServices and SpringBoardServices to your project | // Also link FrontBoardServices and SpringBoardServices to your project | ||
NSURL *relaunchURL = [NSURL URLWithString:@"prefs:root=DISPLAY&path=MAGNIFY"]; | NSURL *relaunchURL = [NSURL URLWithString:@"prefs:root=DISPLAY&path=MAGNIFY"]; | ||
// Fade to black only (iOS 8 Display Zoom's method) | |||
SBSRestartRenderServerAction *restartAction = [SBSRestartRenderServerAction restartActionWithTargetRelaunchURL:relaunchURL]; | SBSRestartRenderServerAction *restartAction = [SBSRestartRenderServerAction restartActionWithTargetRelaunchURL:relaunchURL]; | ||
// Fade to black, then boot screen | |||
SBSRelaunchAction *restartAction = [SBSRelaunchAction actionWithReason:@"RestartRenderServer" options:4 targetURL:relaunchURL]; | |||
[[FBSSystemService sharedService] sendActions:[NSSet setWithObject:restartAction] withResult:nil]; | [[FBSSystemService sharedService] sendActions:[NSSet setWithObject:restartAction] withResult:nil]; | ||
</source> | </source> | ||
{{occlass|library=FrontBoardServices.framework|navbox=1}} | {{occlass|library=FrontBoardServices.framework|navbox=1}} |
Latest revision as of 04:27, 4 August 2016
FBSSystemService is a private class introduced in iOS 8 for supplying various system actions.
Methods
Signature | +(FBSSystemService *)sharedService; |
---|---|
Available in | 8.0 — |
Create FBSSystemService singleton.
Signature | -(void)sendActions:(NSSet *)actions withResult:(id *)result; |
---|---|
Available in | 8.0 — |
This method can send appropriate system-related actions. For examples, SBSRestartRenderServerAction and SBSRelaunchAction actions.
Relaunch SpringBoard with relaunch URL
// Also link FrontBoardServices and SpringBoardServices to your project
NSURL *relaunchURL = [NSURL URLWithString:@"prefs:root=DISPLAY&path=MAGNIFY"];
// Fade to black only (iOS 8 Display Zoom's method)
SBSRestartRenderServerAction *restartAction = [SBSRestartRenderServerAction restartActionWithTargetRelaunchURL:relaunchURL];
// Fade to black, then boot screen
SBSRelaunchAction *restartAction = [SBSRelaunchAction actionWithReason:@"RestartRenderServer" options:4 targetURL:relaunchURL];
[[FBSSystemService sharedService] sendActions:[NSSet setWithObject:restartAction] withResult:nil];
|