Teemo class

Teemo, the lcu interface. Use Teemo methods over EventSubscription methods or Rune methods.

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

close() → void
Attempts to close Teemo's websocket and rest client. Call before exiting the app.
getEventSubscription(String event) List<EventSubscription>
Returns the List<EventSubscription> from Teemo's database of all subscriptions attached to event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(String method, String endpoint, {JsonData? body}) Future<JsonData>
Used to send GET, POST, HEAD, etc... requests.
setCurrentRunePage(int keystone, int primary1, int primary2, int primary3, int secondary1, int secondary2, int perk1, int perk2, int perk3, {String name = 'Teemo Created Page'}) → void
Sets current rune page using either ids or Rune static members. If an invalid page is requested, nothing happens.
subscribe(String event, {EventSubscription? subscription, Handler? behavior}) EventSubscription
Sends a subscription request for event to the LCU. When that event is recieved in the future subscription is launched.
subscriptionFilterEndpoint(EventSubscription subscription, String endpoint, {Handler? behavior}) → void
Adds a special callback to subscription which triggers when an event with the uri endpoint gets sent from the LCU. If no behavior is provided, the subscription's default handler is used. (This is effectively the same as never calling this function, however it is valid.)
subscriptionUnfilterEndpoint(EventSubscription subscription, String endpoint) → void
Removes the special behavior endpoint from the subscription. If absent, while valid, nothing happens.
toString() String
A string representation of this object.
inherited
unsubscribe(String event, {EventSubscription? subscription}) → void
Unsubscribes event. If subscription is provided, only that subscription is removed from the event. Otherwise ALL subscriptions are removed and the event is unsubscribed at the LCU level. If the last subscription is removed from an event, it is unsubscribed at the LCU level. It is possible to unsubscribe to events that were never subscribed to. This is ignored by the LCU.

Operators

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

Static Methods

create({int retries = 5, int retryAfter = 5}) Future<Teemo>
Asychronous constructor for Teemo. Attempts to connect to the LCU retries times, at retryAfter interval.