HBRespringController
Objective-C
@interface HBRespringController : NSObject
Swift
class HBRespringController : NSObject
The HBRespringController class in Cephei provides conveniences for restarting the system app (usually SpringBoard). It also ensures battery usage statistics are not lost when performing the restart.
-
Restart the system app.
On iOS 8.0 and newer, fades out and then returns to the home screen (system remains unlocked). On older iOS versions, a standard restart occurs.
Declaration
Objective-C
+ (void)respring;
Swift
class func respring()
-
Restart the system app and immediately launch a URL.
Requires iOS 8.0 or newer. On older iOS versions, a standard restart occurs and the URL is not opened.
Declaration
Objective-C
+ (void)respringAndReturnTo:(nullable NSURL *)returnURL;
Swift
class func respringAndReturn(to returnURL: URL?)
Parameters
returnURL
The URL to launch after restarting.