Permissions class

Permission Class of a Local Peer in a Room. NOTE Permissions are enforced by the Server. and can be set using the token or can be updated by Remote Peers having admin access of the Room Joined

Inheritance

Constructors

Permissions.createInstance()
factory
Permissions.getInstance()
factory

Properties

acl → dynamic
Get the Access Control List ( acl ) of the Local Peer in the Room.
no setter
hashCode int
The hash code for this object.
no setterinherited
role String?
Custom Role of the Peer in the Room.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callback(Function func, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) → dynamic
inherited
callbackAsFuture(Function func, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) Future
inherited
clearListeners() → void
This function unbinds all the handlers for all the events
inherited
emit(String event, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) → void
This function triggers all the handlers currently listening to event and passes them data.
inherited
emitAsFuture(String event, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) Future
This function triggers all the handlers currently listening to event and passes them data.
inherited
listeners(dynamic event) List
Return function list named event.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event) → void
This function attempts to unbind all the handler from the event
inherited
on(String event, Function handler) → void
This function binds the handler as a listener to the event
inherited
once(String event, Function handler) → void
This function binds the handler as a listener to the first occurrence of the event. When handler is called once, it is removed.
inherited
remove(String event, Function handler) → void
This function attempts to unbind the handler from the event
inherited
removeAllListeners([dynamic eventName]) → void
inherited
reset() → void
safeEmit(String event, [Map<String, dynamic>? args]) → void
inherited
safeEmitAsFuture(String event, [Map<String, dynamic>? args]) Future
inherited
toString() String
A string representation of this object.
inherited
updatePermissions(Map updatedPermissions) → void
Update the Permissions of the Local Peer in the Room. This will emit an event updated with the updated permissions. NOTE: If the Peer is not an admin, then the permissions will not be updated on the server

Operators

operator ==(Object other) bool
The equality operator.
inherited