WhatsappClient class

get WhatsappClient from WhatsappBotFlutter.connect() please do not try to create on your own

Constructors

WhatsappClient({required WpClientInterface wpClient})

Properties

callEvents Stream<CallEvent>
callEvents will give update of all calls
no setter
chat WppChat
getter/setter pair
connectionEventStream Stream<ConnectionEvent>
connectionEventStream will give update of Connection Events
no setter
contact WppContact
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAuthenticated Future<bool>
isAuthenticated is to check if we are loggedIn
no setter
isConnected bool
isConnected is to check if we are still connected to the WhatsappPage
no setter
isReadyToChat Future<bool>
isReadyToChat is to check if whatsapp chat Page opened
no setter
messageEvents Stream<Message>
messageEvents will give update of all new messages
no setter
profile WppProfile
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wpClient WpClientInterface
getter/setter pair

Methods

disconnect({bool tryLogout = false}) Future<void>
disconnect will close the browser instance and set values to null
logout() Future<void>
logout will try to logout only if We are connected and already logged in
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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