Agora RTC Objective-C API Reference Refactor

AgoraLocalSpatialAudioKit Class Reference

Inherits AgoraSpatialAudioKitBase.

## Method Documentation

## ◆ sharedLocalSpatialAudioWithConfig:

+ (instancetype _Nonnull) sharedLocalSpatialAudioWithConfig: |  | (AgoraLocalSpatialAudioConfig *) | config |

## ◆ destroy

+ (void) destroy |  |  |

## ◆ updateRemotePosition:positionInfo:

- (int) updateRemotePosition: |  | (NSUInteger) | uid
positionInfo: |  | (AgoraRemoteVoicePositionInfo *) | posInfo

## ◆ updateRemotePositionEx:positionInfo:connection:

- (int) updateRemotePositionEx: |  | (NSUInteger) | uid
positionInfo: |  | (AgoraRemoteVoicePositionInfo *) | posInfo
connection: |  | (AgoraRtcConnection *) | connection

## ◆ removeRemotePosition:

- (int) removeRemotePosition: |  | (NSUInteger) | uid |

## ◆ removeRemotePositionEx:connection:

- (int) removeRemotePositionEx: |  | (NSUInteger) | uid
connection: |  | (AgoraRtcConnection *) | connection

## ◆ clearRemotePositionsEx:

- (int) clearRemotePositionsEx: |  | (AgoraRtcConnection *) | connection |

## ◆ setRemoteAudioAttenuation:uid:forceSet:

- (int) setRemoteAudioAttenuation: |  | (double) | attenuation
uid: |  | (NSUInteger) | uid
forceSet: |  | (BOOL) | forceSet

## ◆ updateSelfPositionEx:axisForward:axisRight:axisUp:connection:

- (int) updateSelfPositionEx: |  | (simd_float3) | position
axisForward: |  | (simd_float3) | axisForward
axisRight: |  | (simd_float3) | axisRight
axisUp: |  | (simd_float3) | axisUp
connection: |  | (AgoraRtcConnection *) | connection

## ◆ setMaxAudioRecvCount:

- (int) setMaxAudioRecvCount: |  | (NSUInteger) | maxCount |

## ◆ setAudioRecvRange:

- (int) setAudioRecvRange: |  | (float) | range |

## ◆ setDistanceUnit:

- (int) setDistanceUnit: |  | (float) | unit |

## ◆ updatePlayerPositionInfo:positionInfo:

- (int) updatePlayerPositionInfo: |  | (NSInteger) | playerId
positionInfo: |  | (AgoraRemoteVoicePositionInfo *_Nonnull) | positionInfo

## ◆ updateSelfPosition:axisForward:axisRight:axisUp:

- (int) updateSelfPosition: |  | (simd_float3) | position
axisForward: |  | (simd_float3) | axisForward
axisRight: |  | (simd_float3) | axisRight
axisUp: |  | (simd_float3) | axisUp

## ◆ updateSelfTransform:

- (int) updateSelfTransform: |  | (simd_float4x4) | transform |

## ◆ setZones:

- (int) setZones: |  | (NSArray< AgoraSpatialAudioZone * > *_Nullable) | zones |

## ◆ setPlayerAttenuation:playerId:forceSet:

- (int) setPlayerAttenuation: |  | (double) | attenuation
playerId: |  | (NSUInteger) | playerId
forceSet: |  | (BOOL) | forceSet

## ◆ clearRemotePositions

- (int) clearRemotePositions |  |  |