Room
iOS Room APIs
Create a room
Input Parameters:
name
NSString
the room name
false
visibility
NSString
the visibility of the room
false
roomAlias
NSString
the room alias on the node the room will be created
false
topic
NSString
the room topic
false
Output Parameters:
MXCreateRoomResponse
roomId
NSString
The allocated room id
true
Create a room with parameters
Input Parameters:
parameters
NSString
MXRoomCreationParameters
true
Output Parameters:
MXCreateRoomResponse
roomId
NSString
The allocated room id
true
Join a chat room
Parameters:
room_id
string
room id
true
Invite user to the room
Parameters:
room_id
string
room id
true
user_id
string
user id
true
Leave the room
Parameters:
room_id
string
room id
true
Remove a user from the room
Parameters:
room_id
string
room id
true
user_id
String
user id
true
reason
String
reason string
true
Modify room name
Parameters:
room_id
string
room id
true
name
string
new room name
true
Get room name
Parameters:
room_id
string
room id
true
Ban User from a room
Input Parameters:
userId
NSString
user id
true
roomId
NSString
room id
true
reason
NSString
reason of banning the user
false
Output Parameters:
success
block
A block object called when the operation succeeds
true
failure
block
A block object called when the operation fails.
true
Unban user from a room
Input Parameters:
userId
NSString
user id
true
roomId
NSString
room id
true
Output Parameters:
success
block
A block object called when the operation succeeds
true
failure
block
A block object called when the operation fails.
true
The methods below are deprecated. Please avoid using them.
(Deprecated) Create a chat room
Parameters:
MXRoomCreationParameters
type
string
type of login (the type of the above example is m.login.did.identity
)
true
updated
string
updated time returned by the pre_login
true
identifier
json
login information
true
device_id
string
device id, not needed for new device
false
Last updated