-
Notifications
You must be signed in to change notification settings - Fork 520
ScreenTime MacCatalyst xcode16.3 b1
Rolf Bjarne Kvinge edited this page Dec 12, 2024
·
1 revision
#ScreenTime.framework
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebHistory.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebHistory.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebHistory.h 2024-11-14 05:54:40
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebHistory.h 2025-02-07 23:47:59
@@ -9,6 +9,11 @@
NS_ASSUME_NONNULL_BEGIN
+/// An identifier representing a web history profile.
+///
+/// Profiles allow you to keep your web history separate for topics like work, personal, or school.
+typedef NSString * STWebHistoryProfileIdentifier NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(STWebHistory.ProfileIdentifier) API_AVAILABLE(macos(15.4), ios(18.4));
+
/// The object you use to delete web-usage data.
///
/// This class provides an easy way for you to delete web history, including:
@@ -18,6 +23,35 @@
/// - History during a specific time interval
API_AVAILABLE(macos(11.0), ios(14.0))
@interface STWebHistory : NSObject
+
+/// Creates a web history instance to delete web-usage data associated to the
+/// bundle identifier and profile identifier you specify.
+///
+/// The default value for `bundleIdentifier` is `Bundle.main.bundleIdentifier`.
+/// This is the recommended identifier to use, except for example, if a helper
+/// process is presenting web UI and you want to group that web-usage under the
+/// main app’s bundle identifier.
+///
+/// The default value for `profileIdentifier` is `nil`. This identifier can be used to delete
+/// browsing history for a specific profile. Using `nil` will only delete web history reported
+/// without a profile identifier.
+///
+/// - Parameters:
+/// - bundleIdentifier: The bundle identifier.
+/// - profileIdentifier: The identifier of the current browsing profile.
+/// - error: Any error that occurred while changing the bundle identifier.
+- (nullable instancetype)initWithBundleIdentifier:(NSString *)bundleIdentifier profileIdentifier:(nullable STWebHistoryProfileIdentifier)profileIdentifier error:(NSError **)error API_AVAILABLE(macos(15.4), ios(18.4));
+
+/// Creates a web history instance to delete web-usage data associated to the
+/// profile identifier you specify.
+///
+/// The default value for `profileIdentifier` is `nil`. This identifier can be used to delete
+/// browsing history for a specific profile. Using `nil` will only delete web history reported
+/// without a profile identifier.
+///
+/// - Parameters:
+/// - profileIdentifier: The identifier of the current browsing profile.
+- (instancetype)initWithProfileIdentifier:(nullable STWebHistoryProfileIdentifier)profileIdentifier API_AVAILABLE(macos(15.4), ios(18.4));
/// Creates a web history instance to delete web-usage data associated to the
/// bundle identifier you specify.
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebpageController.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebpageController.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebpageController.h 2024-11-14 05:54:40
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/ScreenTime.framework/Headers/STWebpageController.h 2025-02-07 23:47:59
@@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
+#import <ScreenTime/STWebHistory.h>
#if TARGET_OS_OSX
#import <AppKit/AppKit.h>
@@ -61,6 +62,14 @@
/// When a parent or guardian blocks the webpage’s URL, the webpage controller
/// displays a blocking UI and then sets this property to <doc://com.apple.documentation/documentation/objectivec/yes>.
@property (readonly) BOOL URLIsBlocked NS_SWIFT_NAME(urlIsBlocked);
+
+/// An optional identifier for the current browsing profile.
+///
+/// The default value is `nil`. This identifier represents a profile and allows you to keep your browsing separate
+/// for topics like work, personal, or school. Using `nil` will report web history without a profile identifier.
+/// Web browsers with a "default" profile may want to use `nil` in order to match any web history reported prior
+/// to this API.
+@property (nullable, nonatomic, copy) STWebHistoryProfileIdentifier profileIdentifier API_AVAILABLE(macos(15.4), ios(18.4));
/// Changes the bundle identifier used to report web usage.
///