TUILiveBattleManager class abstract
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptBattle(
String battleId) → Future< TUIActionCallback> -
Accept the battle invitation.
battleId
Battle ID. -
addObserver(
TUILiveBattleObserver observer) → void - Add event callback.
-
cancelBattleRequest(
String battleId, List< String> userIdList) → Future<TUIActionCallback> - Cancel request about battle invitation.
-
exitBattle(
String battleId) → Future< TUIActionCallback> -
Exit the battle
battleId
Battle ID. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rejectBattle(
String battleId) → Future< TUIActionCallback> -
Reject the battle invitation.
battleId
Battle ID. -
removeObserver(
TUILiveBattleObserver observer) → void - Remove event callback.
-
requestBattle(
TUIBattleConfig config, List< String> userIdList, int timeout) → Future<TUIValueCallBack< TUIBattleRequestResult> > - Request battle invitation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited