diff --git a/docs/xml/Android.Ranging/RangingManager.xml b/docs/xml/Android.Ranging/RangingManager.xml index 54918c379..9cd94d874 100644 --- a/docs/xml/Android.Ranging/RangingManager.xml +++ b/docs/xml/Android.Ranging/RangingManager.xml @@ -172,11 +172,28 @@ - To be added. - To be added. - To be added. - To be added. - To be added. + The executor on which the callback will be invoked. + The callback to receive session-related events. + Creates a new ranging session. + A RangingSession that can initiate, manage, and stop ranging operations if + the session is successfully created; otherwise, null. + + Creates a new ranging session. A ranging session enables the application to perform + ranging operations using available technologies such as Ultra-Wideband (UWB) or Wi-Fi + Round Trip Time (RTT). + The callback receives session-related events, including session start, stop, and + ranging updates. Provide an executor that handles callbacks on a suitable thread. + + + Java documentation for android.ranging.RangingManager.createRangingSession(java.util.concurrent.Executor, android.ranging.RangingSession.Callback). + + + + Portions of this page are modifications based on work created and shared by the + Android Open Source Project + and used according to terms described in the + Creative Commons 2.5 Attribution License. + @@ -236,10 +253,25 @@ - To be added. - To be added. - To be added. - To be added. + The executor on which the callback will be invoked. + The callback that receives capabilities updates. + Registers a callback to receive ranging capabilities updates. + + Registers a callback to receive ranging capabilities updates. + Callback events are dispatched through the provided executor, which controls the + thread on which they run. Use Context.getMainExecutor() to dispatch events on + the application's main thread, or provide an executor for another suitable thread. + + + Java documentation for android.ranging.RangingManager.registerCapabilitiesCallback(java.util.concurrent.Executor, android.ranging.RangingManager.RangingCapabilitiesCallback). + + + + Portions of this page are modifications based on work created and shared by the + Android Open Source Project + and used according to terms described in the + Creative Commons 2.5 Attribution License. + @@ -327,9 +359,24 @@ - To be added. - To be added. - To be added. + The capabilities callback to unregister. + Unregisters a previously registered ranging capabilities callback. + + Unregisters a previously registered ranging capabilities callback. + After it is unregistered, no further ranging capabilities updates are dispatched to + the callback. Callbacks that were already queued on the callback's executor, or are + already in progress, can still be delivered after this method returns. + + + Java documentation for android.ranging.RangingManager.unregisterCapabilitiesCallback(android.ranging.RangingManager.RangingCapabilitiesCallback). + + + + Portions of this page are modifications based on work created and shared by the + Android Open Source Project + and used according to terms described in the + Creative Commons 2.5 Attribution License. + diff --git a/docs/xml/Android.Ranging/RangingSession.xml b/docs/xml/Android.Ranging/RangingSession.xml index afb53696f..b5625098f 100644 --- a/docs/xml/Android.Ranging/RangingSession.xml +++ b/docs/xml/Android.Ranging/RangingSession.xml @@ -146,8 +146,22 @@ - To be added. - To be added. + Closes this resource, relinquishing any underlying resources. + + Closes this resource, relinquishing any underlying resources. + This method is invoked automatically on objects managed by the + try-with-resources statement. + + + Java documentation for android.ranging.RangingSession.close(). + + + + Portions of this page are modifications based on work created and shared by the + Android Open Source Project + and used according to terms described in the + Creative Commons 2.5 Attribution License. +