2022-11-20 06:22:20 +08:00
|
|
|
extern NSString *LSInstallTypeKey;
|
|
|
|
|
2022-09-02 23:19:48 +08:00
|
|
|
@interface LSBundleProxy
|
|
|
|
@property (nonatomic,readonly) NSString * bundleIdentifier;
|
|
|
|
@property (nonatomic) NSURL* dataContainerURL;
|
2022-11-20 06:22:20 +08:00
|
|
|
@property (nonatomic,readonly) NSURL* bundleContainerURL;
|
2022-09-02 23:19:48 +08:00
|
|
|
-(NSString*)localizedName;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface LSApplicationProxy : LSBundleProxy
|
|
|
|
+ (instancetype)applicationProxyForIdentifier:(NSString*)identifier;
|
2022-10-30 06:45:30 +08:00
|
|
|
+ (instancetype)applicationProxyForBundleURL:(NSURL*)bundleURL;
|
2022-09-02 23:19:48 +08:00
|
|
|
@property NSURL* bundleURL;
|
|
|
|
@property NSString* bundleType;
|
|
|
|
@property NSString* canonicalExecutablePath;
|
|
|
|
@property (nonatomic,readonly) NSDictionary* groupContainerURLs;
|
|
|
|
@property (nonatomic,readonly) NSArray* plugInKitPlugins;
|
|
|
|
@property (getter=isInstalled,nonatomic,readonly) BOOL installed;
|
|
|
|
@property (getter=isPlaceholder,nonatomic,readonly) BOOL placeholder;
|
2022-09-10 02:22:34 +08:00
|
|
|
@property (getter=isRestricted,nonatomic,readonly) BOOL restricted;
|
2022-10-30 06:45:30 +08:00
|
|
|
@property (nonatomic,readonly) NSSet* claimedURLSchemes;
|
|
|
|
@property (nonatomic,readonly) NSString* applicationType;
|
2022-09-02 23:19:48 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface LSApplicationWorkspace : NSObject
|
|
|
|
+ (instancetype)defaultWorkspace;
|
|
|
|
- (BOOL)registerApplicationDictionary:(NSDictionary*)dict;
|
|
|
|
- (BOOL)unregisterApplication:(id)arg1;
|
|
|
|
- (BOOL)_LSPrivateRebuildApplicationDatabasesForSystemApps:(BOOL)arg1 internal:(BOOL)arg2 user:(BOOL)arg3;
|
2022-09-12 22:10:50 +08:00
|
|
|
- (BOOL)openApplicationWithBundleID:(NSString *)arg1 ;
|
2022-09-02 23:19:48 +08:00
|
|
|
- (void)enumerateApplicationsOfType:(NSUInteger)type block:(void (^)(LSApplicationProxy*))block;
|
2022-11-20 06:22:20 +08:00
|
|
|
- (BOOL)installApplication:(NSURL*)appPackageURL withOptions:(NSDictionary*)options error:(NSError**)error;
|
2022-11-01 06:39:28 +08:00
|
|
|
- (BOOL)uninstallApplication:(NSString*)appId withOptions:(NSDictionary*)options;
|
2022-09-02 23:19:48 +08:00
|
|
|
@end
|
|
|
|
|
2022-09-10 02:22:34 +08:00
|
|
|
@interface LSEnumerator : NSEnumerator
|
|
|
|
@property (nonatomic,copy) NSPredicate * predicate;
|
|
|
|
+ (instancetype)enumeratorForApplicationProxiesWithOptions:(NSUInteger)options;
|
|
|
|
@end
|
|
|
|
|
2022-09-02 23:19:48 +08:00
|
|
|
@interface LSPlugInKitProxy : LSBundleProxy
|
|
|
|
@property (nonatomic,readonly) NSString* pluginIdentifier;
|
|
|
|
@property (nonatomic,readonly) NSDictionary * pluginKitDictionary;
|
|
|
|
+ (instancetype)pluginKitProxyForIdentifier:(NSString*)arg1;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MCMContainer : NSObject
|
|
|
|
+ (id)containerWithIdentifier:(id)arg1 createIfNecessary:(BOOL)arg2 existed:(BOOL*)arg3 error:(id*)arg4;
|
|
|
|
@property (nonatomic,readonly) NSURL * url;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MCMDataContainer : MCMContainer
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MCMAppDataContainer : MCMDataContainer
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MCMAppContainer : MCMContainer
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MCMPluginKitPluginDataContainer : MCMDataContainer
|
|
|
|
@end
|