FBSSystemService

From iPhone Development Wiki
Revision as of 04:29, 26 December 2015 by Uroboro (talk | contribs) (Formatting.)
Jump to: navigation, search

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 example, SBSRestartRenderServerAction action.

Relaunch SpringBoard with relaunch URL

	// Also link FrontBoardServices and SpringBoardServices to your project
	NSURL *relaunchURL = [NSURL URLWithString:@"prefs:root=DISPLAY&path=MAGNIFY"];
	SBSRestartRenderServerAction *restartAction = [SBSRestartRenderServerAction restartActionWithTargetRelaunchURL:relaunchURL];
	[[FBSSystemService sharedService] sendActions:[NSSet setWithObject:restartAction] withResult:nil];