WhatsappFlutterClient class

Client over a HeadlessInAppWebView this package created and owns.

Implemented types

Constructors

WhatsappFlutterClient({required InAppWebViewController? controller, required HeadlessInAppWebView? headlessInAppWebView, String? sessionPath})

Properties

controller ↔ InAppWebViewController?
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
headlessInAppWebView ↔ HeadlessInAppWebView?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionPath ↔ String?
getter/setter pairinherited

Methods

dispose() → Future<void>
override
evaluateJs(String source, {String? methodName, bool tryPromise = true, bool forceJsonParseResult = false}) → Future
inherited
getQrCode() → Future<QrCodeImage?>
inherited
initializeEventListener(OnNewEventFromListener onNewEventFromListener) → Future
inherited
injectJs(String content) → Future
inherited
isConnected() → bool
override
loadUrl(String url) → Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event, [dynamic callback(dynamic)?]) → Future<void>
Removes callback from event, or every callback of this client when it is null. Only this client's own JS bridge is detached -- listeners that other code put on the same WPP event stay.
inherited
on(String event, dynamic callback(dynamic)) → Future<void>
Adds callback for a WPP event. Several callbacks may share an event.
inherited
reload() → Future<void>
inherited
restoreListeners() → Future<void>
A page reload drops every JS-side listener; the Dart handlers survive. Call after WPP is injected again to reconnect them.
inherited
takeScreenshot() → Future<Uint8List?>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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