Class MobileOptionsBuilder


public final class MobileOptionsBuilder extends OptionsBuilder<MobileOptionsBuilder>
  • Constructor Details

  • Method Details

    • osType

      private MobileOptionsBuilder osType(@NonNull @NonNull UserAgent.UserAgentPlatform osType)
      Set the operating system of the associated companion
      Returns:
      the same instance for chaining
    • osVersion

      public MobileOptionsBuilder osVersion(@NonNull @NonNull String osVersion)
      Set the operating system's version of the associated companion
      Returns:
      the same instance for chaining
    • model

      public MobileOptionsBuilder model(@NonNull @NonNull String model)
      Set the model of the associated companion
      Returns:
      the same instance for chaining
    • manufacturer

      public MobileOptionsBuilder manufacturer(@NonNull @NonNull String manufacturer)
      Set the manufacturer of the associated companion
      Returns:
      the same instance for chaining
    • business

      public MobileOptionsBuilder business(boolean business)
      Set whether the registered account is a business account
      Returns:
      the same instance for chaining
    • registered

      public Whatsapp registered()
      Expects the session to be already registered This means that the verification code has already been sent to Whatsapp If this is not the case, an exception will be thrown
      Returns:
      a non-null selector
      Throws:
      IllegalStateException - if the session is not registered
    • unregistered

      Expects the session to still need registration This means that you may or may not have a verification code, but that it hasn't already been sent to Whatsapp
      Returns:
      a non-null selector
    • unverified

      Expects the session to still need verification This means that you already have a code, but it hasn't already been sent to Whatsapp
      Returns:
      a non-null selector