-
Notifications
You must be signed in to change notification settings - Fork 125
/
SpringBoardServices.h
61 lines (44 loc) · 2.16 KB
/
SpringBoardServices.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* SpringBoardServices framework header.
*
* Borrows work done by KennyTM.
* See https://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoardServices/SpringBoardServices.h
* for more information.
*
* Copyright (c) 2010 KennyTM~
* Copyright (c) 2013-2014 Cykey (David Murray)
* All rights reserved.
*/
#ifndef SPRINGBOARDSERVICES_H_
#define SPRINGBOARDSERVICES_H_
#include <CoreFoundation/CoreFoundation.h>
#if __cplusplus
extern "C" {
#endif
#pragma mark - API
mach_port_t SBSSpringBoardServerPort();
void SBSetSystemVolumeHUDEnabled(mach_port_t springBoardPort, const char *audioCategory, Boolean enabled);
void SBGetScreenLockStatus(mach_port_t port, BOOL *lockStatus, BOOL *passcodeEnabled);
void SBSOpenNewsstand();
void SBSSuspendFrontmostApplication();
CFStringRef SBSCopyStatusBarOperatorName();
CFStringRef SBSCopyBundlePathForDisplayIdentifier(CFStringRef displayIdentifier);
CFStringRef SBSCopyExecutablePathForDisplayIdentifier(CFStringRef displayIdentifier);
CFDataRef SBSCopyIconImagePNGDataForDisplayIdentifier(CFStringRef displayIdentifier);
CFStringRef SBSCopyNowPlayingAppBundleIdentifier();
CFSetRef SBSCopyDisplayIdentifiers();
CFStringRef SBSCopyLocalizedApplicationNameForDisplayIdentifier(CFStringRef identifier);
CFStringRef SBSCopyFrontmostApplicationDisplayIdentifier();
CFStringRef SBSCopyDisplayIdentifierForProcessID(pid_t PID);
CFDictionaryRef SBSCopyInfoForApplicationWithProcessID(pid_t PID);
CFArrayRef SBSCopyDisplayIdentifiersForProcessID(pid_t PID);
BOOL SBSProcessIDForDisplayIdentifier(CFStringRef identifier, pid_t *pid);
// The following need com.apple.backboardd.launchapplications entitlement
int SBSLaunchApplicationWithIdentifier(CFStringRef identifier, Boolean suspended);
int SBSLaunchApplicationWithIdentifierAndLaunchOptions(CFStringRef identifier, CFDictionaryRef launchOptions, BOOL suspended);
CFStringRef SBSApplicationLaunchingErrorString(int error);
int SBSOpenSensitiveURLAndUnlock(CFURLRef url, char flags); // need com.apple.springboard.opensensitiveurl entitlement
#if __cplusplus
}
#endif
#endif /* SPRINGBOARDSERVICES_H_ */