-
Notifications
You must be signed in to change notification settings - Fork 549
ARKit macOS xcode26.0 b5
Alex Soto edited this page Aug 5, 2025
·
2 revisions
#ARKit.framework
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ARKit.framework/Headers/session.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ARKit.framework/Headers/session.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ARKit.framework/Headers/session.h 2025-07-12 00:42:05
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ARKit.framework/Headers/session.h 2025-07-26 02:46:49
@@ -61,29 +61,29 @@
) AR_REFINED_FOR_SWIFT;
#ifdef __BLOCKS__
-/**
- Handler to be called when there is a change in the state of one or more data providers.
-
- @param data_providers The collection of data providers which had a change in state.
- @param new_state The new state of the data providers.
- @param error The error that occurred, if any. The returned error supports ARC. In non-ARC files, use `ar_release()` to release the error.
- @param failed_data_provider The data provider that failed and caused the error, if any.
- */
+/// A handler that the session calls when one or more data providers associated with it change state.
+///
+/// - Parameters:
+/// - data_providers: The collection of data providers that changed state.
+/// - new_state: The data provider state that triggered the event.
+/// - error: An error associated with the state change, if any. The returned error supports ARC. In non-ARC files, call `ar_release()` to release
+/// the error. Also see `ar_session_error_code_t`.
+/// - failed_data_provider: The data provider that failed and caused the error, if any.
+///
API_AVAILABLE(visionos(1.0), macos(26.0))
typedef void (^ar_session_data_provider_state_change_handler_t)(ar_data_providers_t data_providers,
ar_data_provider_state_t new_state,
ar_error_t _Nullable error,
ar_data_provider_t _Nullable failed_data_provider) AR_REFINED_FOR_SWIFT;
-/**
- Set the data provider state change handler.
-
- @param session The `ar_session_t` instance.
- @param queue The queue on which the handler will be called. Passing NULL will default to the main queue.
- @param data_provider_state_change_handler The data provider state change handler.
-
- @note Setting this will override the function set using `ar_session_set_data_provider_state_change_handler_f`.
- */
+/// Sets the handler for responding to a state change of one or more data providers.
+///
+/// - Parameters:
+/// - session: The `ar_session_t` instance.
+/// - queue: The queue on which the handler will be called. Passing NULL will default to the main queue.
+/// - data_provider_state_change_handler: The data provider state change handler.
+///
+/// - Note: Setting this will override the function set using `ar_session_set_data_provider_state_change_handler_f`.
API_AVAILABLE(visionos(1.0), macos(26.0))
AR_EXTERN void ar_session_set_data_provider_state_change_handler(
ar_session_t session,
@@ -92,15 +92,16 @@
#endif // __BLOCKS__
-/**
- Application-defined function to be called when there is a change in the state of one or more data providers.
-
- @param context The application-defined context.
- @param data_providers The collection of data providers which had a change in state.
- @param new_state The new state of the data providers.
- @param error The error that occurred, if any. The returned error supports ARC. In non-ARC files, use `ar_release()` to release the error.
- @param failed_data_provider The data provider that failed and caused the error, if any.
- */
+/// A handler function that the session calls when one or more data providers associated with it change state.
+///
+/// - Parameters:
+/// - context: The application-defined context.
+/// - data_providers: The collection of data providers that changed state.
+/// - new_state: The data provider state that triggered the event.
+/// - error: An error associated with the state change, if any. The returned error supports ARC. In non-ARC files, call `ar_release()` to
+/// release the error. Also see `ar_session_error_code_t`.
+/// - failed_data_provider: The data provider that failed and caused the error, if any.
+///
API_AVAILABLE(visionos(1.0), macos(26.0))
typedef void (*ar_session_data_provider_state_change_handler_function_t)(void *_Nullable context,
ar_data_providers_t data_providers,
@@ -108,16 +109,16 @@
ar_error_t _Nullable error,
ar_data_provider_t _Nullable failed_data_provider) AR_REFINED_FOR_SWIFT;
-/**
- Set the data provider state change function.
-
- @param session The session.
- @param queue The queue on which the function will be called. Passing NULL will default to the main queue.
- @param context The application-defined context parameter to pass to the function.
- @param data_provider_state_change_handler_function The data provider state change function. Passing NULL will clear this handler.
-
- @note Setting this function will override the handler set using `ar_session_set_data_provider_state_change_handler`.
- */
+/// Sets the handler function for responding to a state change of one or more data providers.
+///
+/// - Parameters:
+/// - session: The `ar_session_t` instance.
+/// - queue: The queue on which the function will be called. Passing NULL will default to the main queue.
+/// - context: The application-defined context parameter to pass to the function.
+/// - data_provider_state_change_handler_function: The data provider state change handler function.
+///
+/// - Note: Setting this will override the handler set using `ar_session_set_data_provider_state_change_handler`.
+///
API_AVAILABLE(visionos(1.0), macos(26.0))
AR_EXTERN void ar_session_set_data_provider_state_change_handler_f(
ar_session_t session,