Class KtpSessionsParam

java.lang.Object
glair.vision.model.param.sessions.BaseSessionsParam
glair.vision.model.param.sessions.KtpSessionsParam

public class KtpSessionsParam extends BaseSessionsParam
Represents the parameters for a KTP (Kartu Tanda Penduduk) session. This class extends the BaseSessionsParam class to include additional options.
  • Constructor Details

    • KtpSessionsParam

      public KtpSessionsParam(String successUrl)
      Constructs a KtpSessionsParam instance with the specified success URL.
      Parameters:
      successUrl - The URL to redirect to upon successful session completion.
  • Method Details

    • getQualitiesDetector

      public boolean getQualitiesDetector()
      Gets whether the image should be checked for quality during the KTP session.
      Returns:
      True if the image quality check is enabled, false otherwise.
    • setQualitiesDetector

      public void setQualitiesDetector(boolean qualitiesDetector)
      Sets whether the image should be checked for quality during the KTP session.
      Parameters:
      qualitiesDetector - If set to true, the image will be checked for quality. The default value is false.
    • toString

      public String toString()
      Returns a JSON representation of the KTP session parameters.
      Overrides:
      toString in class BaseSessionsParam
      Returns:
      A JSON string representing the session parameters.