HBTSProviderController
@interface HBTSProviderController : NSObject
HBTSProviderController manages providers and provides assorted functions for providers to make use of.
-
Returns the singleton instance of this class.
Declaration
Objective-C
+ (nonnull instancetype)sharedInstance;
Swift
class func sharedInstance() -> Self
Return Value
The singleton instance of this class.
-
All instances of HBTSProvider that are known in this process.
In SpringBoard and Preferences, this will be fully populated with all provider bundles found in /Library/TypeStatus/Providers. In apps, this will only contain provider(s) that are loaded into the app.
See
providerForAppIdentifier:Declaration
Objective-C
@property (readonly, retain, nonatomic) NSSet<HBTSProvider *> *_Nonnull providers;
Swift
var providers: Set<AnyHashable> { get }
-
Retrieves the provider corresponding to the specified app bundle identifier.
See
providersDeclaration
Objective-C
- (nullable HBTSProvider *)providerForAppIdentifier: (nonnull NSString *)appIdentifier;
Swift
func provider(forAppIdentifier appIdentifier: String) -> HBTSProvider?
Parameters
appIdentifier
The bundle identifier of the app to retrieve the corresponding provider for.
Return Value
The HBTSProvider corresponding to the provider, or nil if it doesn’t exist or the bundle is not loaded in this process.
-
Indicates whether the specified app bundle identifier is being kept active in the background by a TypeStatus Plus provider.
Declaration
Objective-C
- (BOOL)doesApplicationIdentifierRequireBackgrounding: (nonnull NSString *)bundleIdentifier;
Swift
func doesApplicationRequireBackgrounding(bundleIdentifier: String) -> Bool
Parameters
bundleIdentifier
The bundle identifier to check.
Return Value
Whether the app is being kept active in the background.