AgoraTokenFunctionsAction class
FunctionsAction
to obtain a token for Agora room creation from the server side.
Agoraのルーム作成用トークンをサーバー側から取得するためのFunctionsAction
。
実行する際はオブジェクトをFunctions.execute
に渡してFunction実行します。
final functions = Functions();
final response = functions.execute(AnyFunctionsAction());
- Inheritance
-
- Object
- FunctionsAction<
AgoraTokenFunctionsActionResponse> - AgoraTokenFunctionsAction
Constructors
- AgoraTokenFunctionsAction({required String channelName, AgoraClientRole clientRole = AgoraClientRole.audience, int? uid, String? account})
-
FunctionsAction
to obtain a token for Agora room creation from the server side.const
Properties
- account → String?
-
Account Name.
final
- action → String
-
Action Name.
no setteroverride
- channelName → String
-
Name of the channel to be created.
final
- clientRole → AgoraClientRole
-
Role of the channel creator.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uid → int?
-
User ID.
final
Methods
-
execute(
Future< DynamicMap?> callback(DynamicMap? map)) → Future<AgoraTokenFunctionsActionResponse> -
The value is actually passed to the server side for execution.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → DynamicMap? -
Convert to
DynamicMap
to pass values to the server side.override -
toResponse(
DynamicMap map) → AgoraTokenFunctionsActionResponse -
Converts the value returned from the server side to
TResponse
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited