File tree Expand file tree Collapse file tree 5 files changed +0
-37
lines changed
articles/spatial-anchors/how-tos Expand file tree Collapse file tree 5 files changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -320,19 +320,12 @@ Learn more about the [AnchorLocated](/cpp/api/spatial-anchors/ndk/anchorlocatedd
320
320
321
321
Learn more about the [ DeleteAnchorAsync] ( /cpp/api/spatial-anchors/ndk/cloudspatialanchorsession#deleteanchorasync ) method.
322
322
323
- ### Delete anchor after locating (recommended)
324
-
325
323
``` cpp
326
324
cloudSession_->DeleteAnchorAsync (cloudAnchor, [ this] (Status status) {
327
325
// Perform any processing you may want when delete finishes
328
326
});
329
327
```
330
328
331
- ### Delete anchor without locating
332
- ```cpp
333
- //TODO
334
- ```
335
-
336
329
337
330
[!INCLUDE [Stopping](../../../includes/spatial-anchors-create-locate-anchors-stopping.md)]
338
331
Original file line number Diff line number Diff line change @@ -276,19 +276,11 @@ Learn more about the [AnchorLocatedDelegate](/cpp/api/spatial-anchors/winrt/anch
276
276
277
277
Learn more about the [ DeleteAnchorAsync] ( /cpp/api/spatial-anchors/winrt/cloudspatialanchorsession#deleteanchorasync ) method.
278
278
279
- ### Delete anchor after locating (recommended)
280
-
281
279
``` cpp
282
280
co_await m_cloudSession.DeleteAnchorAsync(cloudAnchor);
283
281
// Perform any processing you may want when delete finishes
284
282
```
285
283
286
- ### Delete anchor without locating
287
- ``` cpp
288
- // TODO
289
- ```
290
-
291
-
292
284
293
285
[ !INCLUDE [ Stopping] ( ../../../includes/spatial-anchors-create-locate-anchors-stopping.md )]
294
286
Original file line number Diff line number Diff line change @@ -355,20 +355,11 @@ Learn more about the [AnchorLocatedListener](/java/api/com.microsoft.azure.spati
355
355
356
356
Learn more about the [ deleteAnchorAsync] ( /java/api/com.microsoft.azure.spatialanchors.cloudspatialanchorsession.deleteanchorasync ) method.
357
357
358
- ### Delete anchor after locating (recommended)
359
-
360
358
``` java
361
359
Future deleteAnchorFuture = mCloudSession. deleteAnchorAsync(cloudAnchor);
362
360
// Perform any processing you may want when delete finishes (deleteAnchorFuture is done)
363
361
```
364
362
365
- ### Delete anchor without locating
366
-
367
- ``` java
368
- // TODO
369
- ```
370
-
371
-
372
363
373
364
[ !INCLUDE [ Stopping] ( ../../../includes/spatial-anchors-create-locate-anchors-stopping.md )]
374
365
Original file line number Diff line number Diff line change @@ -279,22 +279,12 @@ Learn more about the [anchorLocated](/objectivec/api/spatial-anchors/asacloudspa
279
279
280
280
Learn more about the [ deleteAnchor] ( /objectivec/api/spatial-anchors/asacloudspatialanchorsession#deleteanchor ) method.
281
281
282
-
283
- ### Delete anchor after locating (recommended)
284
-
285
282
``` objc
286
283
[_cloudSession deleteAnchor: cloudAnchor withCompletionHandler:^(NSError * error) {
287
284
// Perform any processing you may want when delete finishes
288
285
}] ;
289
286
```
290
287
291
- ### Delete anchor without locating
292
-
293
- ```objc
294
- //TODO
295
- ```
296
-
297
-
298
288
[!INCLUDE [Stopping](../../../includes/spatial-anchors-create-locate-anchors-stopping.md)]
299
289
300
290
Learn more about the [stop](/objectivec/api/spatial-anchors/asacloudspatialanchorsession#stop) method.
Original file line number Diff line number Diff line change @@ -291,14 +291,11 @@ Learn more about the [anchorLocated](/objectivec/api/spatial-anchors/asacloudspa
291
291
292
292
Learn more about the [ delete] ( /objectivec/api/spatial-anchors/asacloudspatialanchorsession#deleteanchor ) method.
293
293
294
- ### Delete anchor after locating (recommended)
295
-
296
294
``` swift
297
295
_cloudSession? .delete (cloudAnchor! , withCompletionHandler : { (error : Error ? ) in
298
296
// Perform any processing you may want when delete finishes
299
297
})
300
298
```
301
- ### Delete anchor without locating
302
299
303
300
304
301
[ !INCLUDE [ Stopping] ( ../../../includes/spatial-anchors-create-locate-anchors-stopping.md )]
You can’t perform that action at this time.
0 commit comments