Module it.auties.cobalt
Package it.auties.whatsapp.api
Class OptionsBuilder<T extends OptionsBuilder<T>>
java.lang.Object
it.auties.whatsapp.api.OptionsBuilder<T>
- Direct Known Subclasses:
MobileOptionsBuilder,WebOptionsBuilder
public sealed class OptionsBuilder<T extends OptionsBuilder<T>>
extends Object
permits MobileOptionsBuilder, WebOptionsBuilder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ErrorHandler(package private) Keys(package private) Store -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautodetectListeners(boolean autodetectListeners) Sets whether listeners marked with theRegisterListenerannotation should be automatically detected and registered By default, this option is enabledautomaticPresenceUpdates(boolean automaticPresenceUpdates) Whether presence updates should be handled automaticallycheckPatchMacks(boolean checkPatchMacs) Sets whether the mac of every app state patch should be validated or not By default, it's set to falseerrorHandler(ErrorHandler errorHandler) Sets the error handler for this sessionSets the name to provide to Whatsapp during the authentication process The web api will display this name in the devices section, while the mobile api will show it to the people you send messages to By default, this value will be set to this library's nameSets the proxy to use for the socketreleaseChannel(UserAgent.ReleaseChannel releaseChannel) Sets the release channeltextPreviewSetting(TextPreviewSetting textPreviewSetting) Sets whether a preview should be automatically generated and attached to text messages that contain links By default, it's enabled with inference
-
Field Details
-
store
Store store -
keys
Keys keys -
errorHandler
ErrorHandler errorHandler
-
-
Constructor Details
-
OptionsBuilder
-
-
Method Details
-
name
Sets the name to provide to Whatsapp during the authentication process The web api will display this name in the devices section, while the mobile api will show it to the people you send messages to By default, this value will be set to this library's name- Returns:
- the same instance for chaining
-
autodetectListeners
Sets whether listeners marked with theRegisterListenerannotation should be automatically detected and registered By default, this option is enabled- Returns:
- the same instance for chaining
-
textPreviewSetting
Sets whether a preview should be automatically generated and attached to text messages that contain links By default, it's enabled with inference- Returns:
- the same instance for chaining
-
errorHandler
Sets the error handler for this session- Returns:
- the same instance for chaining
-
releaseChannel
Sets the release channel- Returns:
- the same instance for chaining
-
proxy
Sets the proxy to use for the socket- Returns:
- the same instance for chaining
-
automaticPresenceUpdates
Whether presence updates should be handled automatically- Returns:
- the same instance for chaining
-
checkPatchMacks
Sets whether the mac of every app state patch should be validated or not By default, it's set to false- Returns:
- the same instance for chaining
-