Skip to main content
API Reference NianticSpatial.NSDK.SharedAR.Rooms RoomManagementService

GetOrCreateRoomAsync


Declaration

public static async Task<GetOrCreateRoomAsyncTaskResult> GetOrCreateRoomAsync(string roomName, string roomDescription, uint roomCapacity)

Parameters

NameTypeSummary
roomNamestring
Room name to check for
roomDescstring
Room description to use if a room needs to be made
roomCapacityuint
Room capacity to use if a room needs to be made
doneCbGetOrCreateRoomCallback
Callback that the function calls after it errors or receives a
valid room id.

Overload

public static void GetOrCreateRoomAsync(string roomName, string roomDesc, uint roomCapacity, GetOrCreateRoomCallback doneCb)

Parameters

NameTypeSummary
roomNamestring
Room name to check for
roomDescstring
Room description to use if a room needs to be made
roomCapacityuint
Room capacity to use if a room needs to be made
doneCbGetOrCreateRoomCallback
Callback that the function calls after it errors or receives a
valid room id.